Struct ockam_transport_websocket::WebSocketSendWorker [−][src]
pub struct WebSocketSendWorker<AsyncStream> where
AsyncStream: AsyncRead + AsyncWrite + Unpin + Send + 'static, { /* fields omitted */ }
Expand description
A WebSocket sending message worker
This half of the worker is created when spawning a new connection worker pair, and listens for messages from the node message system to dispatch to a remote peer.
Trait Implementations
impl<AsyncStream> Worker for WebSocketSendWorker<AsyncStream> where
AsyncStream: AsyncRead + AsyncWrite + Unpin + Send + 'static,
impl<AsyncStream> Worker for WebSocketSendWorker<AsyncStream> where
AsyncStream: AsyncRead + AsyncWrite + Unpin + Send + 'static,
type Message = TransportMessage
type Message = TransportMessage
The type of Message the Worker is sent in Self::handle_message
The API and other resources available for the worker during message processing.
Try to open and handle a typed message
Override initialisation behaviour