UserStreamAsync

Trait UserStreamAsync 

Source
pub trait UserStreamAsync {
    // Required methods
    fn subscribe<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Uuid, BinanceErr>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn unsubscribe(&mut self, uuid: Uuid) -> Option<StoredStream>;
}

Required Methods§

Source

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

Source

fn unsubscribe(&mut self, uuid: Uuid) -> Option<StoredStream>

Implementors§