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>;
}

Required Methods§

source

fn send<'life0, 'async_trait>( &'life0 self, msg: EngineMessage ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn connect<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<(), IntifaceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn disconnect_notifier(&self) -> Arc<Notify>

source

fn disconnect(&self)

source

fn event_stream(&self) -> Receiver<IntifaceMessage>

Implementors§