[][src]Struct tide::http::content::EncodingProposal

pub struct EncodingProposal { /* fields omitted */ }

A proposed Encoding in AcceptEncoding.

Implementations

impl EncodingProposal[src]

pub fn new(
    encoding: impl Into<Encoding>,
    weight: Option<f32>
) -> Result<EncodingProposal, Error>
[src]

Create a new instance of EncodingProposal.

pub fn encoding(&self) -> &Encoding[src]

Get the proposed encoding.

pub fn weight(&self) -> Option<f32>[src]

Get the weight of the proposal.

Trait Implementations

impl Clone for EncodingProposal[src]

impl Copy for EncodingProposal[src]

impl Debug for EncodingProposal[src]

impl Deref for EncodingProposal[src]

type Target = Encoding

The resulting type after dereferencing.

impl DerefMut for EncodingProposal[src]

impl<'_> From<&'_ EncodingProposal> for ContentEncoding[src]

impl From<Encoding> for EncodingProposal[src]

impl From<EncodingProposal> for HeaderValue[src]

impl From<EncodingProposal> for ContentEncoding[src]

impl PartialEq<Encoding> for EncodingProposal[src]

impl<'_> PartialEq<Encoding> for &'_ EncodingProposal[src]

impl PartialEq<EncodingProposal> for EncodingProposal[src]

impl PartialOrd<EncodingProposal> for EncodingProposal[src]

impl StructuralPartialEq for EncodingProposal[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,