pub struct ElifHeaderValue(/* private fields */);
Expand description
Framework-native header value wrapper that hides Axum internals
Implementations§
Source§impl ElifHeaderValue
impl ElifHeaderValue
Sourcepub fn from_str(value: &str) -> Result<Self, ParseError>
pub fn from_str(value: &str) -> Result<Self, ParseError>
Create a new header value from a string
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, ParseError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, ParseError>
Create a new header value from bytes
Sourcepub fn from_static(value: &'static str) -> Self
pub fn from_static(value: &'static str) -> Self
Create a new header value from a static string
Sourcepub fn to_str(&self) -> Result<&str, ParseError>
pub fn to_str(&self) -> Result<&str, ParseError>
Get header value as string
Trait Implementations§
Source§impl Clone for ElifHeaderValue
impl Clone for ElifHeaderValue
Source§fn clone(&self) -> ElifHeaderValue
fn clone(&self) -> ElifHeaderValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ElifHeaderValue
impl Debug for ElifHeaderValue
Source§impl Display for ElifHeaderValue
impl Display for ElifHeaderValue
Source§impl FromStr for ElifHeaderValue
impl FromStr for ElifHeaderValue
Source§impl PartialEq for ElifHeaderValue
impl PartialEq for ElifHeaderValue
impl Eq for ElifHeaderValue
impl StructuralPartialEq for ElifHeaderValue
Auto Trait Implementations§
impl !Freeze for ElifHeaderValue
impl RefUnwindSafe for ElifHeaderValue
impl Send for ElifHeaderValue
impl Sync for ElifHeaderValue
impl Unpin for ElifHeaderValue
impl UnwindSafe for ElifHeaderValue
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> 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.