http_type/websocket_frame/
enum.rs

1use crate::*;
2
3/// WebSocket frame opcode types
4#[derive(Debug, Clone, Copy, PartialEq, Eq)]
5#[repr(u8)]
6pub enum WebSocketOpcode {
7    /// Continuation frame (0x0)
8    Continuation = 0x0,
9    /// Text frame (0x1)
10    Text = 0x1,
11    /// Binary frame (0x2)
12    Binary = 0x2,
13    /// Connection close frame (0x8)
14    Close = 0x8,
15    /// Ping frame (0x9)
16    Ping = 0x9,
17    /// Pong frame (0xA)
18    Pong = 0xA,
19    /// Reserved for future use
20    Reserved(u8),
21}