pub struct Header<'b> {
pub name: &'b [u8],
pub value: &'b [u8],
}Expand description
A header field: borrowed name and value (OWS trimmed).
Fields§
§name: &'b [u8]Field name, as sent.
value: &'b [u8]Field value without leading and trailing whitespace.
Trait Implementations§
impl<'b> Copy for Header<'b>
impl<'b> Eq for Header<'b>
impl<'b> StructuralPartialEq for Header<'b>
Auto Trait Implementations§
impl<'b> Forget for Header<'b>
impl<'b> Freeze for Header<'b>
impl<'b> Move for Header<'b>
impl<'b> RefUnwindSafe for Header<'b>
impl<'b> Send for Header<'b>
impl<'b> Sync for Header<'b>
impl<'b> Unpin for Header<'b>
impl<'b> UnsafeUnpin for Header<'b>
impl<'b> UnwindSafe for Header<'b>
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