Impl

Trait Impl 

Source
pub trait Impl<E: Error + Clone, C: Control<E>>: 'static + Send {
    // Required methods
    fn listen<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<(), E>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn observer(&mut self) -> Result<UnboundedReceiver<Events<E>>, E>;
    fn control(&self) -> C;
}

Required Methods§

Source

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

Source

fn observer(&mut self) -> Result<UnboundedReceiver<Events<E>>, E>

Source

fn control(&self) -> C

Implementors§