Trait SharedWsStreamTrait

Source
pub trait SharedWsStreamTrait<WsStreamId: Hash + Eq + Clone + Debug + Send, Response: SharedWsResponseTrait<WsStreamId> + Send + Debug> {
    // Required method
    fn get_stream_tx_map(
        &mut self,
    ) -> &mut HashMap<WsStreamId, Sender<Result<Response, SharedWsError>>>;

    // Provided method
    fn recv_stream_resp<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        text: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Option<Result<(), SharedWsError>>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Methods§

Source

fn get_stream_tx_map( &mut self, ) -> &mut HashMap<WsStreamId, Sender<Result<Response, SharedWsError>>>

Provided Methods§

Source

fn recv_stream_resp<'life0, 'life1, 'async_trait>( &'life0 mut self, text: &'life1 str, ) -> Pin<Box<dyn Future<Output = Option<Result<(), SharedWsError>>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§