[][src]Trait paxakos::node::Shutdown

pub trait Shutdown {
    type State: State;
    type Communicator: Communicator;
    fn poll_shutdown(
        &mut self,
        cx: &mut Context
    ) -> Poll<ShutdownEventFor<Self>>; }

A Node that is being shut_down.

Associated Types

Loading content...

Required methods

fn poll_shutdown(&mut self, cx: &mut Context) -> Poll<ShutdownEventFor<Self>>

Polls the node's event stream, driving the shutdown to conclusion.

Loading content...

Implementors

impl<S, C> Shutdown for DefaultShutdown<S, C> where
    S: State<LogEntry = <C as Communicator>::LogEntry, Node = <C as Communicator>::Node>,
    C: Communicator
[src]

type State = S

type Communicator = C

Loading content...