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§
fn shutdown( &mut self, peer: Address, stop_timeout: Duration, ) -> impl Future<Output = Result<(), ErrorOf<ShutdownErrorKind>>> + Send
fn exit(&mut self, peer: Address) -> impl Future<Output = bool> + Sendwhere
Sys: Default,
fn kill(&mut self, peer: Address) -> impl Future<Output = bool> + Sendwhere
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.