pub trait WebSocketService {
    type Stream: FusedStream<Item = WebSocketStreamItem> + Unpin;

    // Required method
    fn send_message<'life0, 'async_trait>(
        &'life0 mut self,
        msg: Bytes,
    ) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

source

type Stream: FusedStream<Item = WebSocketStreamItem> + Unpin

Required Methods§

source

fn send_message<'life0, 'async_trait>( &'life0 mut self, msg: Bytes, ) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§