Trait Stop

Source
pub trait Stop<Sys>: Call<Sys, Exit, Outcome = bool> + Call<Sys, Kill, Outcome = bool>
where Sys: System,
{ // Provided methods fn shutdown( &mut self, peer: Address, stop_timeout: Duration, ) -> impl Future<Output = Result<(), ErrorOf<ShutdownErrorKind>>> + Send where Sys: Default, Self: Watching<Sys> + Fork + Recv { ... } fn exit(&mut self, peer: Address) -> impl Future<Output = bool> + Send where Sys: Default { ... } fn kill(&mut self, peer: Address) -> impl Future<Output = bool> + Send where Sys: Default { ... } }

Provided Methods§

Source

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

Source

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

Source

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

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§

Source§

impl<Sys, T> Stop<Sys> for T
where T: Call<Sys, Exit, Outcome = bool> + Call<Sys, Kill, Outcome = bool>, Sys: System,