http_type/websocket_frame/
struct.rs

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