pub struct DataFrame {
pub finished: bool,
pub reserved: [bool; 3],
pub opcode: Opcode,
pub data: Vec<u8>,
}
Represents a WebSocket data frame.
The data held in a DataFrame is never masked.
Masking/unmasking is done when sending and receiving the data frame,
Fields
finished | Whether or no this constitutes the end of a message
|
reserved | The reserved portion of the data frame (RFC6455 5.2)
|
opcode | The opcode associated with this data frame
|
data | The payload associated with this data frame
|
Methods
Trait Implementations
Derived Implementations
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).