pub enum KernelState {
Created,
Launched,
Active,
Deactivated,
Terminating,
Terminated,
}Expand description
Kernel lifecycle state.
Variants§
Created
Kernel is created but not launched.
Launched
Kernel is launched and initializing.
Active
Kernel is active and processing messages.
Deactivated
Kernel is deactivated (paused).
Terminating
Kernel is terminating.
Terminated
Kernel has terminated.
Implementations§
Source§impl KernelState
impl KernelState
Sourcepub fn can_activate(&self) -> bool
pub fn can_activate(&self) -> bool
Check if kernel can be activated.
Sourcepub fn can_deactivate(&self) -> bool
pub fn can_deactivate(&self) -> bool
Check if kernel can be deactivated.
Sourcepub fn can_terminate(&self) -> bool
pub fn can_terminate(&self) -> bool
Check if kernel can be terminated.
Sourcepub fn is_running(&self) -> bool
pub fn is_running(&self) -> bool
Check if kernel is running (can process messages).
Sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
Check if kernel is finished.
Trait Implementations§
Source§impl Clone for KernelState
impl Clone for KernelState
Source§fn clone(&self) -> KernelState
fn clone(&self) -> KernelState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelState
impl Debug for KernelState
Source§impl Hash for KernelState
impl Hash for KernelState
Source§impl PartialEq for KernelState
impl PartialEq for KernelState
impl Copy for KernelState
impl Eq for KernelState
impl StructuralPartialEq for KernelState
Auto Trait Implementations§
impl Freeze for KernelState
impl RefUnwindSafe for KernelState
impl Send for KernelState
impl Sync for KernelState
impl Unpin for KernelState
impl UnwindSafe for KernelState
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CallHasher for T
impl<T> CallHasher for T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.