pub trait Watching {
// Required methods
fn watch(&mut self, peer: Address) -> impl Future<Output = WatchRef> + Send;
fn unwatch(
&mut self,
watch_ref: WatchRef,
) -> impl Future<Output = ()> + Send;
}Required Methods§
fn watch(&mut self, peer: Address) -> impl Future<Output = WatchRef> + Send
fn unwatch(&mut self, watch_ref: WatchRef) -> impl Future<Output = ()> + Send
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.