pub struct HeaderItem<'req> { /* private fields */ }Implementations§
Source§impl<'req> HeaderItem<'req>
impl<'req> HeaderItem<'req>
pub fn from_value<V>(name: HeaderNameToken, value: V) -> Selfwhere
V: Into<HeaderValueInner<'req>>,
pub fn wire_len(&self) -> usize
pub fn name_bytes(&self) -> &'static [u8] ⓘ
pub fn value_bytes(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl<'req> Clone for HeaderItem<'req>
impl<'req> Clone for HeaderItem<'req>
Source§fn clone(&self) -> HeaderItem<'req>
fn clone(&self) -> HeaderItem<'req>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'req> !RefUnwindSafe for HeaderItem<'req>
impl<'req> !Send for HeaderItem<'req>
impl<'req> !Sync for HeaderItem<'req>
impl<'req> !UnwindSafe for HeaderItem<'req>
impl<'req> Freeze for HeaderItem<'req>
impl<'req> Unpin for HeaderItem<'req>
impl<'req> UnsafeUnpin for HeaderItem<'req>
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