Enum rouille::websocket::Message
[−]
[src]
pub enum Message { Text(String), Binary(Vec<u8>), }
A message produced by a websocket connection.
Variants
Text(String)
Text data. If the client is in Javascript, this happens when the client called send()
with a string.
Binary(Vec<u8>)
Binary data. If the client is in Javascript, this happens when the client called send()
with a blob or an arraybuffer.
Trait Implementations
impl Debug for Message
[src]
impl Clone for Message
[src]
fn clone(&self) -> Message
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Message
[src]
fn eq(&self, __arg_0: &Message) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Message) -> bool
This method tests for !=
.