pub struct NoopServerEvents;Expand description
No-op implementation of ServerEvents for testing and non-GUI contexts.
This is the default when GuiBackend is constructed without explicit
event handling (e.g., in unit tests or CLI contexts).
Trait Implementations§
Source§impl Clone for NoopServerEvents
impl Clone for NoopServerEvents
Source§fn clone(&self) -> NoopServerEvents
fn clone(&self) -> NoopServerEvents
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoopServerEvents
impl Debug for NoopServerEvents
Source§impl Default for NoopServerEvents
impl Default for NoopServerEvents
Source§fn default() -> NoopServerEvents
fn default() -> NoopServerEvents
Returns the “default value” for a type. Read more
Source§impl ServerEvents for NoopServerEvents
impl ServerEvents for NoopServerEvents
Source§fn started(&self, _server: &ServerSummary)
fn started(&self, _server: &ServerSummary)
Called when a server has successfully started.
Source§fn stopping(&self, _server: &ServerSummary)
fn stopping(&self, _server: &ServerSummary)
Called just before stopping a server.
Source§fn stopped(&self, _server: &ServerSummary)
fn stopped(&self, _server: &ServerSummary)
Called after a server has stopped.
Source§fn snapshot(&self, _servers: &[ServerSummary])
fn snapshot(&self, _servers: &[ServerSummary])
Called to broadcast the current state of all running servers.
Source§fn error(&self, _server: &ServerSummary, _error: &str)
fn error(&self, _server: &ServerSummary, _error: &str)
Called when a server error occurs.
impl Copy for NoopServerEvents
Auto Trait Implementations§
impl Freeze for NoopServerEvents
impl RefUnwindSafe for NoopServerEvents
impl Send for NoopServerEvents
impl Sync for NoopServerEvents
impl Unpin for NoopServerEvents
impl UnwindSafe for NoopServerEvents
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more