pub struct LifecycleEvent { /* private fields */ }Expand description
Runtime lifecycle event with the context needed by observers.
Implementations§
Source§impl LifecycleEvent
impl LifecycleEvent
Sourcepub const fn new(kind: LifecycleEventKind, context: NodeContext) -> Self
pub const fn new(kind: LifecycleEventKind, context: NodeContext) -> Self
Create a lifecycle event for a node context.
Sourcepub const fn kind(&self) -> LifecycleEventKind
pub const fn kind(&self) -> LifecycleEventKind
Kind of lifecycle transition.
Sourcepub const fn context(&self) -> &NodeContext
pub const fn context(&self) -> &NodeContext
Node context associated with the lifecycle transition.
Trait Implementations§
Source§impl Clone for LifecycleEvent
impl Clone for LifecycleEvent
Source§fn clone(&self) -> LifecycleEvent
fn clone(&self) -> LifecycleEvent
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 moreSource§impl Debug for LifecycleEvent
impl Debug for LifecycleEvent
Source§impl PartialEq for LifecycleEvent
impl PartialEq for LifecycleEvent
Source§fn eq(&self, other: &LifecycleEvent) -> bool
fn eq(&self, other: &LifecycleEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LifecycleEvent
impl StructuralPartialEq for LifecycleEvent
Auto Trait Implementations§
impl Freeze for LifecycleEvent
impl RefUnwindSafe for LifecycleEvent
impl Send for LifecycleEvent
impl Sync for LifecycleEvent
impl Unpin for LifecycleEvent
impl UnsafeUnpin for LifecycleEvent
impl UnwindSafe for LifecycleEvent
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).