Enum websocket_util::wrap::Message  [−][src]
Expand description
A message received over a WebSocketStream.
Variants
Text(String)
Tuple Fields
0: StringA text WebSocket message.
Binary(Vec<u8>)
A binary WebSocket message.
Trait Implementations
type Error = WebSocketError
type Error = WebSocketError
The type of value produced by the sink when an error occurs.
Attempts to prepare the Sink to receive a value. Read more
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read more
Flush any remaining output from this sink. Read more
Auto Trait Implementations
impl RefUnwindSafe for Message
impl UnwindSafe for Message
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
