[][src]Enum sendgrid::error::SendgridError

pub enum SendgridError {
    Io(Error),
    JSONDecode(Error),
    ReqwestError(Error),
    InvalidHeader(InvalidHeaderValue),
    InvalidFilename,
    RequestNotSuccessful(RequestNotSuccessful),
}

Represents any of the ways that using this library can fail.

Variants

Io(Error)

The failure was due to some IO error, for example an interrupted network connection.

JSONDecode(Error)

The failure was due to invalid JSON being received.

ReqwestError(Error)

The failure was due to the network client not working properly.

InvalidHeader(InvalidHeaderValue)

The failure was due to the authorization headers not working as expected.

InvalidFilename

The failure was due to a file containing invalid UTF-8.

RequestNotSuccessful(RequestNotSuccessful)

SendGrid returned an unsuccessful HTTP status code.

Trait Implementations

impl Debug for SendgridError[src]

impl Display for SendgridError[src]

impl Error for SendgridError[src]

impl From<Error> for SendgridError[src]

impl From<Error> for SendgridError[src]

impl From<Error> for SendgridError[src]

impl From<InvalidHeaderValue> for SendgridError[src]

impl From<RequestNotSuccessful> for SendgridError[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> 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.