[][src]Struct viaduct::error::UnexpectedStatus

pub struct UnexpectedStatus {
    pub status: u16,
    pub method: Method,
    pub url: Url,
}

This error is returned as the Err result from [Response::require_success].

Note that it's not a variant on Error to distinguish between errors caused by the network, and errors returned from the server.

Fields

status: u16method: Methodurl: Url

Trait Implementations

impl Clone for UnexpectedStatus[src]

impl Debug for UnexpectedStatus[src]

impl Display for UnexpectedStatus[src]

impl Error for UnexpectedStatus[src]

impl PartialEq<UnexpectedStatus> for UnexpectedStatus[src]

impl StructuralPartialEq for UnexpectedStatus[src]

Auto Trait Implementations

impl RefUnwindSafe for UnexpectedStatus

impl Send for UnexpectedStatus

impl Sync for UnexpectedStatus

impl Unpin for UnexpectedStatus

impl UnwindSafe for UnexpectedStatus

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.