[−][src]Trait websocket::ws::message::Message
A trait for WebSocket messages
Required Methods
fn serialize(&self, _: &mut dyn Write, masked: bool) -> WebSocketResult<()>
Writes this message to the writer
fn message_size(&self, masked: bool) -> usize
Returns how many bytes this message will take up
fn from_dataframes<D: DataFrameable>(frames: Vec<D>) -> WebSocketResult<Self>
Attempt to form a message from a series of data frames
Implementors
impl Message for OwnedMessage
[src]
impl Message for OwnedMessage
fn serialize(&self, writer: &mut dyn Write, masked: bool) -> WebSocketResult<()>
[src]
fn serialize(&self, writer: &mut dyn Write, masked: bool) -> WebSocketResult<()>
Attempt to form a message from a series of data frames
fn message_size(&self, masked: bool) -> usize
[src]
fn message_size(&self, masked: bool) -> usize
Returns how many bytes this message will take up
fn from_dataframes<D>(frames: Vec<D>) -> WebSocketResult<Self> where
D: DataFrameTrait,
[src]
fn from_dataframes<D>(frames: Vec<D>) -> WebSocketResult<Self> where
D: DataFrameTrait,
Attempt to form a message from a series of data frames
impl<'a> Message for Message<'a>
[src]
impl<'a> Message for Message<'a>
fn serialize(&self, writer: &mut dyn Write, masked: bool) -> WebSocketResult<()>
[src]
fn serialize(&self, writer: &mut dyn Write, masked: bool) -> WebSocketResult<()>
Attempt to form a message from a series of data frames
fn message_size(&self, masked: bool) -> usize
[src]
fn message_size(&self, masked: bool) -> usize
Returns how many bytes this message will take up
fn from_dataframes<D>(frames: Vec<D>) -> WebSocketResult<Self> where
D: DataFrameTrait,
[src]
fn from_dataframes<D>(frames: Vec<D>) -> WebSocketResult<Self> where
D: DataFrameTrait,
Attempt to form a message from a series of data frames