struct Bucket<T> {
hash: HashValue,
key: HeaderName,
value: T,
links: Option<Links>,
}
Expand description
Stores the data associated with a HeaderMap
entry. Only the first value is
included in this struct. If a header name has more than one associated
value, all extra values are stored in the extra_values
vector. A doubly
linked list of entries is maintained. The doubly linked list is used so that
removing a value is constant time. This also has the nice property of
enabling double ended iteration.
Fields§
§hash: HashValue
§key: HeaderName
§value: T
§links: Option<Links>
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for Bucket<T>
impl<T> RefUnwindSafe for Bucket<T>where
T: RefUnwindSafe,
impl<T> Send for Bucket<T>where
T: Send,
impl<T> Sync for Bucket<T>where
T: Sync,
impl<T> Unpin for Bucket<T>where
T: Unpin,
impl<T> UnwindSafe for Bucket<T>where
T: UnwindSafe,
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