pub(crate) struct HeaderProtectionKey(HeaderProtectionKey);
Tuple Fields§
§0: HeaderProtectionKey
Implementations§
Trait Implementations§
Source§impl HeaderProtectionKey for HeaderProtectionKey
impl HeaderProtectionKey for HeaderProtectionKey
Source§fn encrypt_in_place(
&self,
sample: &[u8],
first: &mut u8,
packet_number: &mut [u8],
) -> Result<(), Error>
fn encrypt_in_place( &self, sample: &[u8], first: &mut u8, packet_number: &mut [u8], ) -> Result<(), Error>
Adds QUIC Header Protection. Read more
Source§fn decrypt_in_place(
&self,
sample: &[u8],
first: &mut u8,
packet_number: &mut [u8],
) -> Result<(), Error>
fn decrypt_in_place( &self, sample: &[u8], first: &mut u8, packet_number: &mut [u8], ) -> Result<(), Error>
Removes QUIC Header Protection. Read more
Source§fn sample_len(&self) -> usize
fn sample_len(&self) -> usize
Expected sample length for the key’s algorithm
Auto Trait Implementations§
impl Freeze for HeaderProtectionKey
impl RefUnwindSafe for HeaderProtectionKey
impl Send for HeaderProtectionKey
impl Sync for HeaderProtectionKey
impl Unpin for HeaderProtectionKey
impl UnwindSafe for HeaderProtectionKey
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