pub trait Interface:
DynClone
+ Send
+ Debug {
// Required methods
fn receive<'life0, 'async_trait>(
&'life0 self,
interface_tx: Sender<String>,
shutdown: Receiver<bool>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn send<'life0, 'async_trait>(
&'life0 self,
interface_rx: Receiver<Notification>,
shutdown: Receiver<bool>,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
A data structure that contains information and functions needed to communicate on a particular interface between the server and client.