pub trait Shutdown {
type Invocation: Invocation;
fn poll_shutdown(
&mut self,
cx: &mut Context<'_>
) -> Poll<ShutdownEvent<Self::Invocation>>;
}
Expand description
A Node
that is being shut_down
.
Required Associated Types
type Invocation: Invocation
type Invocation: Invocation
Parametrization of the paxakos algorithm.
Required Methods
fn poll_shutdown(
&mut self,
cx: &mut Context<'_>
) -> Poll<ShutdownEvent<Self::Invocation>>
fn poll_shutdown(
&mut self,
cx: &mut Context<'_>
) -> Poll<ShutdownEvent<Self::Invocation>>
Polls the node’s event stream, driving the shutdown to conclusion.