Trait web_socket::Message
source · pub trait Message {
// Required method
fn encode<const SIDE: bool>(&self, writer: &mut Vec<u8>);
}
Expand description
This trait is responsible for encoding websocket messages.
pub trait Message {
// Required method
fn encode<const SIDE: bool>(&self, writer: &mut Vec<u8>);
}
This trait is responsible for encoding websocket messages.