From 1f744f15481d4d7a8f6fcea80c137fb3f235ed61 Mon Sep 17 00:00:00 2001 From: Mike Pedersen Date: Sat, 25 Apr 2020 09:58:51 +0200 Subject: [PATCH] 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. --- src/protocol/frame/frame.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocol/frame/frame.rs b/src/protocol/frame/frame.rs index 5992932..e6a0009 100644 --- a/src/protocol/frame/frame.rs +++ b/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 {