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