#[non_exhaustive]pub enum ContextLifecycle {
Alive,
Dropping,
NativeDestroyed,
}Expand description
Lifecycle visible to persistent safe Context capabilities.
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.
Alive
The native Context accepts ordinary safe calls.
Dropping
Context teardown has started; only core-created teardown access is valid.
NativeDestroyed
The native Context has been destroyed and its pointer is a tombstone.
Trait Implementations§
Source§impl Clone for ContextLifecycle
impl Clone for ContextLifecycle
Source§fn clone(&self) -> ContextLifecycle
fn clone(&self) -> ContextLifecycle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContextLifecycle
Source§impl Debug for ContextLifecycle
impl Debug for ContextLifecycle
impl Eq for ContextLifecycle
Source§impl PartialEq for ContextLifecycle
impl PartialEq for ContextLifecycle
impl StructuralPartialEq for ContextLifecycle
Auto Trait Implementations§
impl Freeze for ContextLifecycle
impl RefUnwindSafe for ContextLifecycle
impl Send for ContextLifecycle
impl Sync for ContextLifecycle
impl Unpin for ContextLifecycle
impl UnsafeUnpin for ContextLifecycle
impl UnwindSafe for ContextLifecycle
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