[][src]Enum mm_client::MMCError

pub enum MMCError {
    NotAuthorized,
    ResourceNotFound,
    APIFailure(StatusCode),
    BadRequest(String),
    Convert(FromUtf8Error),
    Network(Error),
    Io(Error),
    UnknownEndpoint(String),
    UnsupportedMoveParent(String),
}

Error type that represents failures from Client

Variants

NotAuthorized

Generated by when a request tries to access an resource it is not authorized for

ResourceNotFound

Generated by a failure to find a requested resource

APIFailure(StatusCode)

Generated by unknown server failures from the remote server

BadRequest(String)

Generated by a bad request response from the server with a reason attached

Convert(FromUtf8Error)

Generated by a failure to parse an API response

Network(Error)

Generated by the networking client

Io(Error)

Generated by handling of network responses

UnknownEndpoint(String)

Generated when an endpoint string can not be parsed

UnsupportedMoveParent(String)

Generated when trying to move an object to an unsupported parent

Trait Implementations

impl Debug for MMCError[src]

impl Display for MMCError[src]

impl Error for MMCError[src]

impl From<Error> for MMCError[src]

impl From<Error> for MMCError[src]

impl From<FromUtf8Error> for MMCError[src]

Auto Trait Implementations

impl !RefUnwindSafe for MMCError

impl Send for MMCError

impl Sync for MMCError

impl Unpin for MMCError

impl !UnwindSafe for MMCError

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

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.