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
sourceimpl Clone for ResourceLoadingErrorKind
impl Clone for ResourceLoadingErrorKind
sourcefn clone(&self) -> ResourceLoadingErrorKind
fn clone(&self) -> ResourceLoadingErrorKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ResourceLoadingErrorKind
impl Debug for ResourceLoadingErrorKind
sourceimpl Display for ResourceLoadingErrorKind
impl Display for ResourceLoadingErrorKind
sourceimpl Fail for ResourceLoadingErrorKind
impl Fail for ResourceLoadingErrorKind
sourcefn 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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<ResourceLoadingErrorKind> for ResourceLoadingError
impl From<ResourceLoadingErrorKind> for ResourceLoadingError
sourcefn from(err: ResourceLoadingErrorKind) -> Self
fn from(err: ResourceLoadingErrorKind) -> Self
Converts to this type from the input type.
sourceimpl Hash for ResourceLoadingErrorKind
impl Hash for ResourceLoadingErrorKind
sourceimpl PartialEq<ResourceLoadingErrorKind> for ResourceLoadingErrorKind
impl PartialEq<ResourceLoadingErrorKind> for ResourceLoadingErrorKind
sourcefn eq(&self, other: &ResourceLoadingErrorKind) -> bool
fn eq(&self, other: &ResourceLoadingErrorKind) -> bool
impl Copy for ResourceLoadingErrorKind
impl Eq for ResourceLoadingErrorKind
impl StructuralEq for ResourceLoadingErrorKind
impl StructuralPartialEq for ResourceLoadingErrorKind
Auto Trait Implementations
impl RefUnwindSafe for ResourceLoadingErrorKind
impl Send for ResourceLoadingErrorKind
impl Sync for ResourceLoadingErrorKind
impl Unpin for ResourceLoadingErrorKind
impl UnwindSafe for ResourceLoadingErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more