deboa_extras/ws/
protocol.rs

1/// Message enum
2///
3/// # Variants
4///
5/// * `Text(String)` - A text message.
6/// * `Binary(Vec<u8>)` - A binary message.
7/// * `Close(u16, String)` - A close message.
8/// * `Ping(Vec<u8>)` - A ping message.
9/// * `Pong(Vec<u8>)` - A pong message.
10#[derive(Clone)]
11pub enum Message {
12    Text(String),
13    Binary(Vec<u8>),
14    Close(u16, String),
15    Ping(Vec<u8>),
16    Pong(Vec<u8>),
17}