#[non_exhaustive]pub enum LifecycleKind {
Installed,
NodeStarted,
Unknown,
}Expand description
A kind of LifecycleEvent a delegate can ask to receive.
Adding a kind later means adding a variant here and a matching
LifecycleEvent variant. A delegate built before the addition cannot
list the new kind, so it never receives the new event — which is what makes
appending a LifecycleEvent variant safe for already-deployed delegates.
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.
Installed
NodeStarted
Unknown
A name this stdlib does not know, written by a newer one. Readers
ignore it. The macro never writes it; re-serializing a manifest read
from a newer stdlib does (as "unknown").
Trait Implementations§
Source§impl Clone for LifecycleKind
impl Clone for LifecycleKind
impl Copy for LifecycleKind
Source§impl Debug for LifecycleKind
impl Debug for LifecycleKind
Source§impl<'de> Deserialize<'de> for LifecycleKind
impl<'de> Deserialize<'de> for LifecycleKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LifecycleKind
Source§impl Hash for LifecycleKind
impl Hash for LifecycleKind
Source§impl PartialEq for LifecycleKind
impl PartialEq for LifecycleKind
Source§impl Serialize for LifecycleKind
impl Serialize for LifecycleKind
impl StructuralPartialEq for LifecycleKind
Auto Trait Implementations§
impl Freeze for LifecycleKind
impl RefUnwindSafe for LifecycleKind
impl Send for LifecycleKind
impl Sync for LifecycleKind
impl Unpin for LifecycleKind
impl UnsafeUnpin for LifecycleKind
impl UnwindSafe for LifecycleKind
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