mm1_core/context/
watching.rs1use std::future::Future;
2
3use mm1_address::address::Address;
4use mm1_proto_system as system;
5
6pub trait Watching {
7 fn watch(&mut self, peer: Address) -> impl Future<Output = system::WatchRef> + Send;
8 fn unwatch(&mut self, watch_ref: system::WatchRef) -> impl Future<Output = ()> + Send;
9}