Trait Watching

Source
pub trait Watching<Sys>: Call<Sys, Watch, Outcome = WatchRef> + Call<Sys, Unwatch, Outcome = ()>
where Sys: System,
{ // Provided methods fn watch(&mut self, peer: Address) -> impl Future<Output = WatchRef> + Send where Sys: Default { ... } fn unwatch(&mut self, wait_ref: WatchRef) -> impl Future<Output = ()> + Send where Sys: Default { ... } }

Provided Methods§

Source

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

Source

fn unwatch(&mut self, wait_ref: WatchRef) -> impl Future<Output = ()> + 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> Watching<Sys> for T
where T: Call<Sys, Watch, Outcome = WatchRef> + Call<Sys, Unwatch, Outcome = ()>, Sys: System,