http_type/websocket_frame/struct.rs
1use crate::*;
2
3/// Represents a decoded WebSocket frame
4#[derive(Debug, Clone, Lombok, Default, DisplayDebug)]
5pub struct WebSocketFrame {
6 /// FIN flag indicating if this is the final frame
7 #[set(skip)]
8 pub(super) fin: bool,
9 /// Opcode indicating the frame type (text, binary, etc.)
10 #[set(skip)]
11 pub(super) opcode: u8,
12 /// Mask flag indicating if the payload is masked
13 #[set(skip)]
14 pub(super) mask: bool,
15 /// The payload data of the frame
16 #[set(skip)]
17 pub(super) payload_data: Vec<u8>,
18}