[−][src]Struct http_header::data::Data
Some data that conforms to a specific encoding
Methods
impl<E: Encoding> Data<E>
[src]
pub fn try_from_superset<S: Encoding>(
superset: Data<S>
) -> Result<Self, HttpError> where
E: SubsetOf<S>,
[src]
superset: Data<S>
) -> Result<Self, HttpError> where
E: SubsetOf<S>,
Tries to create self
from data with a superset encoding
pub fn from_subset<S: Encoding>(subset: Data<S>) -> Self where
S: SubsetOf<E>,
[src]
S: SubsetOf<E>,
Creates self
from data with a subset encoding
impl<E: Encoding> Data<E>
[src]
Trait Implementations
impl<E: Encoding> AsRef<[u8]> for Data<E>
[src]
impl<E: Encoding + SubsetOf<Utf8>> AsRef<str> for Data<E>
[src]
impl<E: Encoding> Eq for Data<E>
[src]
impl<E: Clone + Encoding> Clone for Data<E>
[src]
impl<E: Encoding> PartialEq<Data<E>> for Data<E>
[src]
impl<E: Encoding> PartialEq<str> for Data<E>
[src]
impl<E: Encoding> PartialEq<Data<E>> for str
[src]
impl<E: Encoding> From<Data<E>> for Vec<u8>
[src]
impl<E: Encoding> Hash for Data<E>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<E: Encoding> Deref for Data<E>
[src]
impl<E: Encoding + SubsetOf<Utf8>> Display for Data<E>
[src]
impl<E: Debug + Encoding> Debug for Data<E>
[src]
impl TryFrom<Data<Uri>> for QueryString
[src]
type Error = HttpError
The type returned in the event of a conversion error.
fn try_from(uri: Data<Uri>) -> Result<Self, Self::Error>
[src]
impl<'_, E: Encoding> TryFrom<&'_ str> for Data<E>
[src]
type Error = HttpError
The type returned in the event of a conversion error.
fn try_from(source: &str) -> Result<Self, Self::Error>
[src]
impl<'_, E: Encoding> TryFrom<&'_ [u8]> for Data<E>
[src]
type Error = HttpError
The type returned in the event of a conversion error.
fn try_from(bytes: &[u8]) -> Result<Self, Self::Error>
[src]
impl<E: Encoding> TryFrom<String> for Data<E>
[src]
type Error = HttpError
The type returned in the event of a conversion error.
fn try_from(source: String) -> Result<Self, Self::Error>
[src]
impl<E: Encoding> TryFrom<Vec<u8>> for Data<E>
[src]
type Error = HttpError
The type returned in the event of a conversion error.
fn try_from(bytes: Vec<u8>) -> Result<Self, Self::Error>
[src]
impl TryFrom<Data<Integer>> for u128
[src]
type Error = ParseIntError
The type returned in the event of a conversion error.
fn try_from(data: Data<Integer>) -> Result<Self, Self::Error>
[src]
impl<'a> TryFrom<Data<Integer>> for u16
[src]
Auto Trait Implementations
impl<E> Sync for Data<E> where
E: Sync,
E: Sync,
impl<E> Send for Data<E> where
E: Send,
E: Send,
impl<E> Unpin for Data<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for Data<E> where
E: UnwindSafe,
E: UnwindSafe,
impl<E> RefUnwindSafe for Data<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,