pub trait IConnection:
Debug
+ Send
+ Sync
+ 'static {
// Required methods
fn is_connected(&self) -> bool;
fn await_disconnection<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Generic connection trait shared between IGuardianConnection and
IGatewayConnection