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