Enum urbandictionary::Error [−][src]
pub enum Error { Json(JsonError), Io(IoError), Reqwest(ReqwestError), }
Common error type used throughout the library, to be used as a holder for errors from various other libraries.
Variants
Json(JsonError)
A serde_json
crate error.
Io(IoError)
A std::io
module error.
Reqwest(ReqwestError)
An error from the reqwest
crate.
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<IoError> for Error
[src]
impl From<IoError> for Error
impl From<JsonError> for Error
[src]
impl From<JsonError> for Error
impl From<ReqwestError> for Error
[src]
impl From<ReqwestError> for Error
fn from(err: ReqwestError) -> Error
[src]
fn from(err: ReqwestError) -> Error
Performs the conversion.
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> FmtResult
[src]
fn fmt(&self, f: &mut Formatter) -> FmtResult
Formats the value using the given formatter. Read more
impl StdError for Error
[src]
impl StdError for Error