aboutsummaryrefslogtreecommitdiff
path: root/src/packet.rs
diff options
context:
space:
mode:
authorGravatar Alessandro Ghedini <alessandro@ghedini.me> 2019-02-08 16:56:26 +0000
committerGravatar Alessandro Ghedini <alessandro@ghedini.me> 2019-02-08 16:56:26 +0000
commit032418f1ce8fa4c5c11fcf1e53207003f7ba86c6 (patch)
treeaef97ec9fc997633da529cf3ac40b9ddd0f264f2 /src/packet.rs
parent930bfc4fc90b0c29958cfe52caff85943f83f651 (diff)
downloadquiche-032418f1ce8fa4c5c11fcf1e53207003f7ba86c6.tar.gz
quiche-032418f1ce8fa4c5c11fcf1e53207003f7ba86c6.tar.zst
quiche-032418f1ce8fa4c5c11fcf1e53207003f7ba86c6.zip
packet: make protected header fields private
Diffstat (limited to '')
-rw-r--r--src/packet.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/packet.rs b/src/packet.rs
index a7c0227f..b6341929 100644
--- a/src/packet.rs
+++ b/src/packet.rs
@@ -81,11 +81,11 @@ pub struct Header {
/// The packet number. It's only meaningful after the header protection is
/// removed.
- pub pkt_num: u64,
+ pub(crate) pkt_num: u64,
/// The length of the packet number. It's only meaningful after the header
/// protection is removed.
- pub pkt_num_len: usize,
+ pub(crate) pkt_num_len: usize,
/// The address verification token of the packet. Only present in `Initial`
/// and `Retry` packets.
@@ -97,7 +97,7 @@ pub struct Header {
/// The key phase bit of the packet. It's only meaningful after the header
/// protection is removed.
- pub key_phase: bool,
+ pub(crate) key_phase: bool,
}
impl Header {