Trait paxakos::Shutdown [−][src]
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
.
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.