pub struct Header<'x> {
pub name: HeaderName<'x>,
pub value: HeaderValue<'x>,
pub offset_field: u32,
pub offset_start: u32,
pub offset_end: u32,
}
Expand description
A message header.
Fields§
§name: HeaderName<'x>
§value: HeaderValue<'x>
§offset_field: u32
§offset_start: u32
§offset_end: u32
Implementations§
Source§impl<'x> Header<'x>
impl<'x> Header<'x>
Sourcepub fn value(&self) -> &HeaderValue<'x>
pub fn value(&self) -> &HeaderValue<'x>
Returns the parsed header value
Sourcepub fn offset_start(&self) -> u32
pub fn offset_start(&self) -> u32
Returns the raw offset start
Sourcepub fn offset_end(&self) -> u32
pub fn offset_end(&self) -> u32
Returns the raw offset end
Sourcepub fn offset_field(&self) -> u32
pub fn offset_field(&self) -> u32
Returns the raw offset of the header name
Sourcepub fn into_owned(self) -> Header<'static>
pub fn into_owned(self) -> Header<'static>
Returns an owned version of the header
Trait Implementations§
impl<'x> Eq for Header<'x>
impl<'x> StructuralPartialEq for Header<'x>
Auto Trait Implementations§
impl<'x> Freeze for Header<'x>
impl<'x> RefUnwindSafe for Header<'x>
impl<'x> Send for Header<'x>
impl<'x> Sync for Header<'x>
impl<'x> Unpin for Header<'x>
impl<'x> UnwindSafe for Header<'x>
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