Enum modio::error::Error [−][src]
pub enum Error { Msg(String), Fault { code: StatusCode, error: ClientError, }, RateLimit { reset: Duration, }, Codec(SerdeError), Http(HttpError), Hyper(HyperError), Io(IoError), Uri(InvalidUri), }
Variants
Msg(String)
Fault
Fields of Fault
code: StatusCode | |
error: ClientError |
RateLimit
Fields of RateLimit
reset: Duration |
Codec(SerdeError)
Http(HttpError)
Hyper(HyperError)
Io(IoError)
Uri(InvalidUri)
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<String> for Error
[src]
impl From<String> for Error
impl<'a> From<&'a str> for Error
[src]
impl<'a> From<&'a str> for Error
impl From<SerdeError> for Error
[src]
impl From<SerdeError> for Error
fn from(err: SerdeError) -> Error
[src]
fn from(err: SerdeError) -> Error
Performs the conversion.
impl From<HttpError> for Error
[src]
impl From<HttpError> for Error
impl From<HyperError> for Error
[src]
impl From<HyperError> for Error
fn from(err: HyperError) -> Error
[src]
fn from(err: HyperError) -> Error
Performs the conversion.
impl From<IoError> for Error
[src]
impl From<IoError> for Error
impl From<InvalidUri> for Error
[src]
impl From<InvalidUri> for Error
fn from(err: InvalidUri) -> Error
[src]
fn from(err: InvalidUri) -> Error
Performs the conversion.