Trait Stop

Source
pub trait Stop {
    // Required methods
    fn exit(&mut self, peer: Address) -> impl Future<Output = bool> + Send;
    fn kill(&mut self, peer: Address) -> impl Future<Output = bool> + Send;

    // Provided method
    fn shutdown(
        &mut self,
        peer: Address,
        stop_timeout: Duration,
    ) -> impl Future<Output = Result<(), ErrorOf<ShutdownErrorKind>>> + Send
       where Self: Watching + Fork + Messaging { ... }
}

Required Methods§

Source

fn exit(&mut self, peer: Address) -> impl Future<Output = bool> + Send

Source

fn kill(&mut self, peer: Address) -> impl Future<Output = bool> + Send

Provided Methods§

Source

fn shutdown( &mut self, peer: Address, stop_timeout: Duration, ) -> impl Future<Output = Result<(), ErrorOf<ShutdownErrorKind>>> + Send
where Self: Watching + Fork + Messaging,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§