pub struct Algorithm {
init: fn(key: &[u8], cpu_features: Features) -> Result<KeyInner, Unspecified>,
new_mask: fn(key: &KeyInner, sample: Sample) -> [u8; 5],
key_len: usize,
id: AlgorithmID,
}
Expand description
A QUIC Header Protection Algorithm.
Fields§
§init: fn(key: &[u8], cpu_features: Features) -> Result<KeyInner, Unspecified>
§new_mask: fn(key: &KeyInner, sample: Sample) -> [u8; 5]
§key_len: usize
§id: AlgorithmID
Implementations§
Trait Implementations§
impl Eq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
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