WebSocket

Trait WebSocket 

Source
pub trait WebSocket
where Self: Debug + Send + Sync,
{ // Required methods fn send<'life0, 'async_trait>( &'life0 self, data: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<SendResult, BusError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn blocking_send(&self, data: Vec<u8>) -> Result<SendResult, BusError>; fn as_client(&self) -> Option<WebSocketClient>; }

Required Methods§

Source

fn send<'life0, 'async_trait>( &'life0 self, data: Vec<u8>, ) -> Pin<Box<dyn Future<Output = Result<SendResult, BusError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn blocking_send(&self, data: Vec<u8>) -> Result<SendResult, BusError>

Source

fn as_client(&self) -> Option<WebSocketClient>

Implementors§