Enum reqwasm::websocket::Message [−][src]
Expand description
Message sent to and received from WebSocket.
Variants
Text(String)
Tuple Fields
0: String
String message
Bytes(Vec<u8>)
ArrayBuffer parsed into bytes
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