#[repr(i32)]pub enum LifecycleChange {
SNAPSHOT = 0,
READY = 1,
DRAINING = 2,
SELECTION_CHANGED = 3,
RETIRING = 4,
}Expand description
WATCH always starts with a snapshot. Updates carry the complete state too, so a slow observer can receive coalesced changes without losing current state.
Variants§
Implementations§
Source§impl LifecycleChange
impl LifecycleChange
Sourcepub const Snapshot: Self = Self::SNAPSHOT
pub const Snapshot: Self = Self::SNAPSHOT
Idiomatic alias for Self::SNAPSHOT; Debug prints the variant name.
Sourcepub const Ready: Self = Self::READY
pub const Ready: Self = Self::READY
Idiomatic alias for Self::READY; Debug prints the variant name.
Sourcepub const Draining: Self = Self::DRAINING
pub const Draining: Self = Self::DRAINING
Idiomatic alias for Self::DRAINING; Debug prints the variant name.
Sourcepub const SelectionChanged: Self = Self::SELECTION_CHANGED
pub const SelectionChanged: Self = Self::SELECTION_CHANGED
Idiomatic alias for Self::SELECTION_CHANGED; Debug prints the variant name.
Sourcepub const Retiring: Self = Self::RETIRING
pub const Retiring: Self = Self::RETIRING
Idiomatic alias for Self::RETIRING; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for LifecycleChange
impl Clone for LifecycleChange
impl Copy for LifecycleChange
Source§impl Debug for LifecycleChange
impl Debug for LifecycleChange
Source§impl Default for LifecycleChange
impl Default for LifecycleChange
Source§impl Enumeration for LifecycleChange
impl Enumeration for LifecycleChange
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for LifecycleChange
Source§impl Hash for LifecycleChange
impl Hash for LifecycleChange
Source§impl PartialEq for LifecycleChange
impl PartialEq for LifecycleChange
impl StructuralPartialEq for LifecycleChange
Auto Trait Implementations§
impl Freeze for LifecycleChange
impl RefUnwindSafe for LifecycleChange
impl Send for LifecycleChange
impl Sync for LifecycleChange
impl Unpin for LifecycleChange
impl UnsafeUnpin for LifecycleChange
impl UnwindSafe for LifecycleChange
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