OrderBookWebSocket

Trait OrderBookWebSocket 

Source
pub trait OrderBookWebSocket: Send + Sync {
    // Required methods
    fn connect<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<(), WebSocketError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn disconnect<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<(), WebSocketError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn subscribe<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        market_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), WebSocketError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn unsubscribe<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        market_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), WebSocketError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn state(&self) -> WebSocketState;
    fn orderbook_stream<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        market_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<OrderbookStream, WebSocketError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

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

Source

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

Source

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

Source

fn unsubscribe<'life0, 'life1, 'async_trait>( &'life0 mut self, market_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), WebSocketError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn state(&self) -> WebSocketState

Source

fn orderbook_stream<'life0, 'life1, 'async_trait>( &'life0 mut self, market_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<OrderbookStream, WebSocketError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§