pub struct From;Expand description
See FROM for more details.
Implementations§
Source§impl From
impl From
Sourcepub const fn from_static(value: &'static str) -> Header<From>
pub const fn from_static(value: &'static str) -> Header<From>
Creates a new instance of [Header<T>] from a static str
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Header<From>, Error>
pub fn from_bytes(bytes: &[u8]) -> Result<Header<From>, Error>
Construct a typed header from bytes (validated).
Sourcepub fn new(value: HeaderValue) -> Header<From>
pub fn new(value: HeaderValue) -> Header<From>
Wrap an owned raw HeaderValue (validated elsewhere).
Sourcepub fn from_ref(value: &HeaderValue) -> Header<From>
pub fn from_ref(value: &HeaderValue) -> Header<From>
Wrap a borrowed raw HeaderValue (validated elsewhere).
Trait Implementations§
Source§impl FromHeaders for From
impl FromHeaders for From
Source§const NAME: HeaderName = FROM
const NAME: HeaderName = FROM
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 From
impl Ord for From
Source§impl PartialOrd for From
impl PartialOrd for From
impl Copy for From
impl Eq for From
impl StructuralPartialEq for From
Auto Trait Implementations§
impl Freeze for From
impl RefUnwindSafe for From
impl Send for From
impl Sync for From
impl Unpin for From
impl UnsafeUnpin for From
impl UnwindSafe for From
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.