Enum actix_web::ws::Message [−][src]
pub enum Message {
Text(String),
Binary(Binary),
Ping(String),
Pong(String),
Close(Option<CloseReason>),
}WebSocket Message
Variants
Text(String)Text message
Binary(Binary)Binary message
Ping(String)Ping message
Pong(String)Pong message
Close(Option<CloseReason>)Close message with optional reason
Trait Implementations
impl Message for Message[src]
impl Message for Messagetype Result = ()
The type of value that this message will resolved with if it is successful. Read more
impl Debug for Message[src]
impl Debug for Messagefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Message[src]
impl PartialEq for Message