Enum medallion::error::Error [−][src]
pub enum Error { Custom(String), Utf8(FromUtf8Error), Base64(DecodeError), JSON(Error), Crypto(ErrorStack), }
Variants
Custom(String)
Custom, Medallion specific errors.
Utf8(FromUtf8Error)
String encoding errors.
Base64(DecodeError)
Base64 encoding or decoding errors.
JSON(Error)
JSON parsing or stringifying errors.
Crypto(ErrorStack)
Errors from RSA operations.
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 Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Display for Error
[src]
impl Display 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<FromUtf8Error> for Error
[src]
impl From<FromUtf8Error> for Error
fn from(f: FromUtf8Error) -> Error
[src]
fn from(f: FromUtf8Error) -> Error
Performs the conversion.
impl From<DecodeError> for Error
[src]
impl From<DecodeError> for Error
fn from(f: DecodeError) -> Error
[src]
fn from(f: DecodeError) -> Error
Performs the conversion.
impl From<Error> for Error
[src]
impl From<Error> for Error
impl From<ErrorStack> for Error
[src]
impl From<ErrorStack> for Error
fn from(f: ErrorStack) -> Error
[src]
fn from(f: ErrorStack) -> Error
Performs the conversion.