mm1_core/context/linking.rs
1use std::future::Future;
2
3use mm1_address::address::Address;
4
5pub trait Linking {
6    fn link(&mut self, peer: Address) -> impl Future<Output = ()> + Send;
7    fn unlink(&mut self, peer: Address) -> impl Future<Output = ()> + Send;
8    fn set_trap_exit(&mut self, enable: bool) -> impl Future<Output = ()> + Send;
9}