pub enum GenerationState {
Disabled {
next_generation: u64,
},
Active(Box<ActiveGenerationState>),
}Expand description
Current generation state for a controller.
Variants§
Disabled
Controller is disarmed and has no active generation.
Active(Box<ActiveGenerationState>)
Controller currently owns one active generation.
Trait Implementations§
Source§impl Clone for GenerationState
impl Clone for GenerationState
Source§fn clone(&self) -> GenerationState
fn clone(&self) -> GenerationState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenerationState
impl Debug for GenerationState
Source§impl PartialEq for GenerationState
impl PartialEq for GenerationState
impl Eq for GenerationState
impl StructuralPartialEq for GenerationState
Auto Trait Implementations§
impl Freeze for GenerationState
impl RefUnwindSafe for GenerationState
impl Send for GenerationState
impl Sync for GenerationState
impl Unpin for GenerationState
impl UnsafeUnpin for GenerationState
impl UnwindSafe for GenerationState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.