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
Auto Trait Implementations
impl<AsyncStream> !RefUnwindSafe for WebSocketSendWorker<AsyncStream>
impl<AsyncStream> Send for WebSocketSendWorker<AsyncStream>
impl<AsyncStream> Sync for WebSocketSendWorker<AsyncStream>
impl<AsyncStream> Unpin for WebSocketSendWorker<AsyncStream>
impl<AsyncStream> !UnwindSafe for WebSocketSendWorker<AsyncStream>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more