Make mask public on FrameHeader

Without the ability to get the mask, having the `FrameHeader` struct as a public type along with functions like `parse` is somewhat useless. I can't see any reason why it shouldn't be public.
pull/116/head
Mike Pedersen 5 years ago committed by GitHub
parent 1ef18d54ad
commit 1f744f1548
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/protocol/frame/frame.rs

@ -51,7 +51,7 @@ pub struct FrameHeader {
/// WebSocket protocol opcode.
pub opcode: OpCode,
/// A frame mask, if any.
mask: Option<[u8; 4]>,
pub mask: Option<[u8; 4]>,
}
impl Default for FrameHeader {

Loading…
Cancel
Save