#[non_exhaustive]pub enum MonitorState {
Stopped,
Starting,
Running,
Failed(NetError),
Closed,
}Expand description
The lifecycle shared by every clone of a network status client.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Stopped
Monitoring has not been started.
Starting
Monitoring startup is in progress.
Running
Monitoring is active and publishing observations.
Failed(NetError)
Startup or monitoring failed; contains the classified cause.
Closed
Monitoring was permanently shut down.
Trait Implementations§
Source§impl Clone for MonitorState
impl Clone for MonitorState
Auto Trait Implementations§
impl !RefUnwindSafe for MonitorState
impl !UnwindSafe for MonitorState
impl Freeze for MonitorState
impl Send for MonitorState
impl Sync for MonitorState
impl Unpin for MonitorState
impl UnsafeUnpin for MonitorState
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