Struct tiny_http::HeaderField [−][src]
Field of a header (eg. Content-Type
, Content-Length
, etc.)
Comparaison between two HeaderField
s ignores case.
Implementations
impl HeaderField
[src]
pub fn from_bytes<B>(bytes: B) -> Result<HeaderField, FromAsciiError<B>> where
B: Into<Vec<u8>> + AsRef<[u8]>,
[src]
B: Into<Vec<u8>> + AsRef<[u8]>,
pub fn as_str<'a>(&'a self) -> &'a AsciiStr
[src]
pub fn equiv(&self, other: &'static str) -> bool
[src]
Trait Implementations
impl Clone for HeaderField
[src]
fn clone(&self) -> HeaderField
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for HeaderField
[src]
impl Display for HeaderField
[src]
impl Eq for HeaderField
[src]
impl FromStr for HeaderField
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<HeaderField, ()>
[src]
impl PartialEq<HeaderField> for HeaderField
[src]
Auto Trait Implementations
impl RefUnwindSafe for HeaderField
impl Send for HeaderField
impl Sync for HeaderField
impl Unpin for HeaderField
impl UnwindSafe for HeaderField
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,