#[non_exhaustive]pub enum HostState {
Created,
Running,
Stopping,
Stopped,
Failed,
}Expand description
The lifecycle state of a native host.
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.
Created
The host exists but has not been started.
Running
The host has started native work.
Stopping
Termination has been requested.
Stopped
Native work has terminated.
Failed
Registration or native startup failed; the host cannot be reused.
Trait Implementations§
impl Copy for HostState
impl Eq for HostState
impl StructuralPartialEq for HostState
Auto Trait Implementations§
impl Freeze for HostState
impl RefUnwindSafe for HostState
impl Send for HostState
impl Sync for HostState
impl Unpin for HostState
impl UnsafeUnpin for HostState
impl UnwindSafe for HostState
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