[][src]Trait websocket::ws::message::Message

pub trait Message: Sized {
    fn serialize(&self, _: &mut dyn Write, masked: bool) -> WebSocketResult<()>;
fn message_size(&self, masked: bool) -> usize;
fn from_dataframes<D: DataFrameable>(
        frames: Vec<D>
    ) -> WebSocketResult<Self>; }

A trait for WebSocket messages

Required Methods

Writes this message to the writer

Returns how many bytes this message will take up

Attempt to form a message from a series of data frames

Implementors

impl Message for OwnedMessage
[src]

Attempt to form a message from a series of data frames

Returns how many bytes this message will take up

Attempt to form a message from a series of data frames

impl<'a> Message for Message<'a>
[src]

Attempt to form a message from a series of data frames

Returns how many bytes this message will take up

Attempt to form a message from a series of data frames