Enum paxakos::event::ShutdownEvent
source · [−]pub enum ShutdownEvent<I: Invocation> {
Regular(Event<I>),
Final {
snapshot: SnapshotFor<I>,
},
}
Expand description
Emitted by Shutdown
’s poll_shutdown
method.
Variants
Regular(Event<I>)
Regular event emitted during the shutdown process.
Final
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
snapshot: SnapshotFor<I>
Snapshot that may be used to restart the node via
[resuming_from
][crate::NodeBuilderWithNodeIdAndCommunicator::
resuming_from].
Final event of the shutdown process.
When this event is received the shutdown procedure has completed.
Trait Implementations
sourceimpl<I: Invocation> Debug for ShutdownEvent<I>
impl<I: Invocation> Debug for ShutdownEvent<I>
sourceimpl<I: Invocation> From<Event<I>> for ShutdownEvent<I>
impl<I: Invocation> From<Event<I>> for ShutdownEvent<I>
Auto Trait Implementations
impl<I> RefUnwindSafe for ShutdownEvent<I> where
<I as Invocation>::CoordNum: RefUnwindSafe,
<<I as Invocation>::State as State>::Effect: RefUnwindSafe,
<I as Invocation>::Ejection: RefUnwindSafe,
<<I as Invocation>::State as State>::Frozen: RefUnwindSafe,
<<I as Invocation>::State as State>::LogEntry: RefUnwindSafe,
<<I as Invocation>::State as State>::Node: RefUnwindSafe,
<I as Invocation>::RoundNum: RefUnwindSafe,
<I as Invocation>::State: RefUnwindSafe,
impl<I> Send for ShutdownEvent<I>
impl<I> Sync for ShutdownEvent<I> where
<<I as Invocation>::State as State>::Effect: Sync,
impl<I> Unpin for ShutdownEvent<I> where
<<I as Invocation>::State as State>::Effect: Unpin,
<I as Invocation>::Ejection: Unpin,
<<I as Invocation>::State as State>::Node: Unpin,
<I as Invocation>::State: Unpin,
impl<I> UnwindSafe for ShutdownEvent<I> where
<I as Invocation>::CoordNum: UnwindSafe + RefUnwindSafe,
<<I as Invocation>::State as State>::Effect: UnwindSafe,
<I as Invocation>::Ejection: UnwindSafe,
<<I as Invocation>::State as State>::Frozen: RefUnwindSafe,
<<I as Invocation>::State as State>::LogEntry: RefUnwindSafe,
<<I as Invocation>::State as State>::Node: UnwindSafe,
<I as Invocation>::RoundNum: UnwindSafe + RefUnwindSafe,
<I as Invocation>::State: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more