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