Trait Frontend
Source pub trait Frontend: Sync + Send {
// Required methods
fn send<'life0, 'async_trait>(
&'life0 self,
msg: EngineMessage,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn connect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), IntifaceError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn disconnect_notifier(&self) -> Arc<Notify>;
fn disconnect(&self);
fn event_stream(&self) -> Receiver<IntifaceMessage>;
}