pub struct Entry<'a>(/* private fields */);Expand description
One admitted HTTP field whose borrowed bytes cannot change during emission.
Implementations§
Source§impl<'a> Entry<'a>
impl<'a> Entry<'a>
pub const fn new(name: Lower<&'a [u8]>, value: Value<&'a [u8]>) -> Self
pub const fn pseudo(name: Pseudo, value: Value<&'a [u8]>) -> Self
pub const fn with_index(self, indexing: Indexing) -> Self
pub const fn name(self) -> &'a [u8] ⓘ
pub const fn value(self) -> Value<&'a [u8]>
pub const fn indexing(self) -> Indexing
pub const fn as_record(&self) -> Entry<'a>
Trait Implementations§
impl<'a> Copy for Entry<'a>
impl<'a> Eq for Entry<'a>
impl<'a> StructuralPartialEq for Entry<'a>
Auto Trait Implementations§
impl<'a> Forget for Entry<'a>
impl<'a> Freeze for Entry<'a>
impl<'a> RefUnwindSafe for Entry<'a>
impl<'a> Send for Entry<'a>
impl<'a> Sync for Entry<'a>
impl<'a> Unpin for Entry<'a>
impl<'a> UnsafeUnpin for Entry<'a>
impl<'a> UnwindSafe for Entry<'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