Enum paxakos::event::ShutdownEvent [−][src]
pub enum ShutdownEvent<I: Invocation> {
Regular(Event<I>),
Final {
snapshot: Option<SnapshotFor<I>>,
},
}
Expand description
Emitted by Shutdown
’s poll_shutdown
method.
Variants
Regular(Event<I>)
Regular event emitted during the shutdown process.
Tuple Fields of Regular
0: Event<I>
Final event of the shutdown process.
When this event is received the shutdown procedure has completed.
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.
Fields of Final
snapshot: Option<SnapshotFor<I>>
Snapshot that may be used to restart the node via
[resuming_from
][crate::NodeBuilderWithNodeIdAndCommunicator::
resuming_from].
Trait Implementations
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>::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>::State as State>::Node: 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>::State as State>::LogEntry: RefUnwindSafe,
<<I as Invocation>::State as State>::Node: UnwindSafe,
<I as Invocation>::RoundNum: UnwindSafe + RefUnwindSafe,
<I as Invocation>::State: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more