Enum mail_core::error::ResourceLoadingErrorKind
source · pub enum ResourceLoadingErrorKind {
NotFound,
LoadingFailed,
MediaTypeDetectionFailed,
}Expand description
Reasons why the loading of an Resource can fail.
Variants§
NotFound
The resource wasn’t found.
LoadingFailed
The act of loading it failed (e.g. because of an I/0-Error)
MediaTypeDetectionFailed
Trait Implementations§
source§impl Clone for ResourceLoadingErrorKind
impl Clone for ResourceLoadingErrorKind
source§fn clone(&self) -> ResourceLoadingErrorKind
fn clone(&self) -> ResourceLoadingErrorKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ResourceLoadingErrorKind
impl Debug for ResourceLoadingErrorKind
source§impl Display for ResourceLoadingErrorKind
impl Display for ResourceLoadingErrorKind
source§impl Fail for ResourceLoadingErrorKind
impl Fail for ResourceLoadingErrorKind
source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moresource§impl From<ResourceLoadingErrorKind> for ResourceLoadingError
impl From<ResourceLoadingErrorKind> for ResourceLoadingError
source§fn from(err: ResourceLoadingErrorKind) -> Self
fn from(err: ResourceLoadingErrorKind) -> Self
Converts to this type from the input type.