pub enum HpackRepresentation<'a> {
Indexed(HpackIndexedField<'a>),
Literal(HpackLiteralField<'a>),
DynamicTableSizeUpdate(HpackDynamicTableSizeUpdate<'a>),
}Expand description
One exact borrowed RFC 7541 section 6 header-field representation.
Variants§
Indexed(HpackIndexedField<'a>)
An indexed header field.
Literal(HpackLiteralField<'a>)
A literal header field.
DynamicTableSizeUpdate(HpackDynamicTableSizeUpdate<'a>)
A dynamic table size update.
Implementations§
Source§impl<'a> HpackRepresentation<'a>
impl<'a> HpackRepresentation<'a>
Sourcepub fn parse(bytes: &'a [u8]) -> Result<Self, HpackRepresentationParseError>
pub fn parse(bytes: &'a [u8]) -> Result<Self, HpackRepresentationParseError>
Parses one representation and excludes any following bytes.
Trait Implementations§
Source§impl<'a> Clone for HpackRepresentation<'a>
impl<'a> Clone for HpackRepresentation<'a>
impl<'a> Copy for HpackRepresentation<'a>
Source§impl<'a> Debug for HpackRepresentation<'a>
impl<'a> Debug for HpackRepresentation<'a>
impl<'a> Eq for HpackRepresentation<'a>
Source§impl<'a> PartialEq for HpackRepresentation<'a>
impl<'a> PartialEq for HpackRepresentation<'a>
impl<'a> StructuralPartialEq for HpackRepresentation<'a>
Auto Trait Implementations§
impl<'a> Freeze for HpackRepresentation<'a>
impl<'a> RefUnwindSafe for HpackRepresentation<'a>
impl<'a> Send for HpackRepresentation<'a>
impl<'a> Sync for HpackRepresentation<'a>
impl<'a> Unpin for HpackRepresentation<'a>
impl<'a> UnsafeUnpin for HpackRepresentation<'a>
impl<'a> UnwindSafe for HpackRepresentation<'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