pub struct HpackLiteralField<'a> { /* private fields */ }Expand description
An exact borrowed RFC 7541 literal header field.
Implementations§
Source§impl<'a> HpackLiteralField<'a>
impl<'a> HpackLiteralField<'a>
Sourcepub const fn mode(self) -> HpackLiteralMode
pub const fn mode(self) -> HpackLiteralMode
Returns the literal field’s indexing mode.
Sourcepub const fn name_index(self) -> HpackInteger<'a>
pub const fn name_index(self) -> HpackInteger<'a>
Returns the exact raw-preserving name index representation.
Sourcepub const fn name_index_value(self) -> u64
pub const fn name_index_value(self) -> u64
Returns the decoded name index value; zero means name is present.
Sourcepub const fn name(self) -> Option<HpackStringLiteral<'a>>
pub const fn name(self) -> Option<HpackStringLiteral<'a>>
Returns the literal name when the name index is zero.
Sourcepub const fn value(self) -> HpackStringLiteral<'a>
pub const fn value(self) -> HpackStringLiteral<'a>
Returns the required opaque literal value.
Trait Implementations§
Source§impl<'a> Clone for HpackLiteralField<'a>
impl<'a> Clone for HpackLiteralField<'a>
impl<'a> Copy for HpackLiteralField<'a>
Source§impl<'a> Debug for HpackLiteralField<'a>
impl<'a> Debug for HpackLiteralField<'a>
impl<'a> Eq for HpackLiteralField<'a>
Source§impl<'a> PartialEq for HpackLiteralField<'a>
impl<'a> PartialEq for HpackLiteralField<'a>
impl<'a> StructuralPartialEq for HpackLiteralField<'a>
Auto Trait Implementations§
impl<'a> Freeze for HpackLiteralField<'a>
impl<'a> RefUnwindSafe for HpackLiteralField<'a>
impl<'a> Send for HpackLiteralField<'a>
impl<'a> Sync for HpackLiteralField<'a>
impl<'a> Unpin for HpackLiteralField<'a>
impl<'a> UnsafeUnpin for HpackLiteralField<'a>
impl<'a> UnwindSafe for HpackLiteralField<'a>
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