pub struct Trailer;Expand description
See TRAILER for more details.
Implementations§
Source§impl Trailer
impl Trailer
Sourcepub const fn from_static(value: &'static str) -> Header<Trailer>
pub const fn from_static(value: &'static str) -> Header<Trailer>
Creates a new instance of [Header<T>] from a static str
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Header<Trailer>, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<Header<Trailer>, Error>
Construct a typed header from bytes (validated).
Sourcepub fn new(value: HeaderValue) -> Header<Trailer>
pub fn new(value: HeaderValue) -> Header<Trailer>
Wrap an owned raw HeaderValue (validated elsewhere).
Sourcepub fn from_ref(value: &HeaderValue) -> Header<Trailer>
pub fn from_ref(value: &HeaderValue) -> Header<Trailer>
Wrap a borrowed raw HeaderValue (validated elsewhere).
Trait Implementations§
Source§impl FromHeaders for Trailer
impl FromHeaders for Trailer
Source§const NAME: HeaderName = TRAILER
const NAME: HeaderName = TRAILER
Returns current
HeaderNameSource§fn from_headers(headers: &HeaderMap) -> Option<&HeaderValue>
fn from_headers(headers: &HeaderMap) -> Option<&HeaderValue>
Reads a
HeaderValue from HeaderMapSource§impl Ord for Trailer
impl Ord for Trailer
Source§impl PartialOrd for Trailer
impl PartialOrd for Trailer
impl Copy for Trailer
impl Eq for Trailer
impl StructuralPartialEq for Trailer
Auto Trait Implementations§
impl Freeze for Trailer
impl RefUnwindSafe for Trailer
impl Send for Trailer
impl Sync for Trailer
impl Unpin for Trailer
impl UnsafeUnpin for Trailer
impl UnwindSafe for Trailer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.