pub struct HpackLiteralHuffman(/* private fields */);Expand description
Explicit Huffman choices for one HPACK literal field.
Implementations§
Source§impl HpackLiteralHuffman
impl HpackLiteralHuffman
Sourcepub const fn new(name: bool, value: bool) -> Self
pub const fn new(name: bool, value: bool) -> Self
Creates a strategy from independent name and value choices.
Sourcepub const fn encodes_name(self) -> bool
pub const fn encodes_name(self) -> bool
Returns whether a literal name is Huffman encoded.
Sourcepub const fn encodes_value(self) -> bool
pub const fn encodes_value(self) -> bool
Returns whether a literal value is Huffman encoded.
Trait Implementations§
Source§impl Clone for HpackLiteralHuffman
impl Clone for HpackLiteralHuffman
impl Copy for HpackLiteralHuffman
Source§impl Debug for HpackLiteralHuffman
impl Debug for HpackLiteralHuffman
impl Eq for HpackLiteralHuffman
Source§impl PartialEq for HpackLiteralHuffman
impl PartialEq for HpackLiteralHuffman
impl StructuralPartialEq for HpackLiteralHuffman
Auto Trait Implementations§
impl Freeze for HpackLiteralHuffman
impl RefUnwindSafe for HpackLiteralHuffman
impl Send for HpackLiteralHuffman
impl Sync for HpackLiteralHuffman
impl Unpin for HpackLiteralHuffman
impl UnsafeUnpin for HpackLiteralHuffman
impl UnwindSafe for HpackLiteralHuffman
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