pub enum MechanismLifecycle {
Active,
Retired,
DeviceLost,
Terminated,
}Expand description
Lifecycle of one registered mechanism.
Variants§
Active
New allocations and capability operations are accepted.
Retired
New work is rejected, but existing allocations may still be explicitly released through their pinned original mechanism.
DeviceLost
The device/context was lost. All operations, including explicit release, are rejected until external context/process termination is confirmed.
Terminated
External context/process termination was observed. Metadata is terminal; no allocator callback is made while entering this state.
Trait Implementations§
Source§impl Clone for MechanismLifecycle
impl Clone for MechanismLifecycle
Source§fn clone(&self) -> MechanismLifecycle
fn clone(&self) -> MechanismLifecycle
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 MechanismLifecycle
Source§impl Debug for MechanismLifecycle
impl Debug for MechanismLifecycle
impl Eq for MechanismLifecycle
Source§impl PartialEq for MechanismLifecycle
impl PartialEq for MechanismLifecycle
impl StructuralPartialEq for MechanismLifecycle
Auto Trait Implementations§
impl Freeze for MechanismLifecycle
impl RefUnwindSafe for MechanismLifecycle
impl Send for MechanismLifecycle
impl Sync for MechanismLifecycle
impl Unpin for MechanismLifecycle
impl UnsafeUnpin for MechanismLifecycle
impl UnwindSafe for MechanismLifecycle
Blanket Implementations§
impl<T> BindingResource for T
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