#[non_exhaustive]pub enum Version {
V1Draft,
V1,
V2,
}
Expand description
QUIC protocol version
Governs version-specific behavior in the TLS layer
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl Version
impl Version
fn initial_salt(self) -> &'static [u8; 20]
Sourcepub(crate) fn packet_key_label(&self) -> &'static [u8] ⓘ
pub(crate) fn packet_key_label(&self) -> &'static [u8] ⓘ
Key derivation label for packet keys.
Sourcepub(crate) fn packet_iv_label(&self) -> &'static [u8] ⓘ
pub(crate) fn packet_iv_label(&self) -> &'static [u8] ⓘ
Key derivation label for packet “IV“s.
Sourcepub(crate) fn header_key_label(&self) -> &'static [u8] ⓘ
pub(crate) fn header_key_label(&self) -> &'static [u8] ⓘ
Key derivation for header keys.
fn key_update_label(&self) -> &'static [u8] ⓘ
Trait Implementations§
impl Copy for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more