Skip to main content

HeaderKey

Trait HeaderKey 

Source
pub trait HeaderKey: Send {
    // Required method
    fn mask(&self, sample: &[u8]) -> [u8; 5];
}
Expand description

Header protection for one direction (RFC 9001 §5.4).

Required Methods§

Source

fn mask(&self, sample: &[u8]) -> [u8; 5]

The five-byte mask for a 16-byte sample.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§