[][src]Trait tab_websocket::bus::WebsocketMessageBus

pub trait WebsocketMessageBus: Sized {
    type Send: Message<Self, Channel = Sender<Self::Send>> + Clone + Send + Sync + Serialize + 'static;
    type Recv: Message<Self, Channel = Sender<Self::Recv>> + Clone + DeserializeOwned + Send + Sync + 'static;
}

Defines a Send and Receive message type, and constrains the Message implementation on the bus. Allows the WebsocketConnectionBus to carry messages onto the bus.

Associated Types

type Send: Message<Self, Channel = Sender<Self::Send>> + Clone + Send + Sync + Serialize + 'static

type Recv: Message<Self, Channel = Sender<Self::Recv>> + Clone + DeserializeOwned + Send + Sync + 'static

Loading content...

Implementors

Loading content...