Enum mail_core::error::ResourceError
source · pub enum ResourceError {
Loading(ResourceLoadingError),
Encoding(EncodingError),
}
Expand description
Error caused by failing to load an Resource
Variants
Loading(ResourceLoadingError)
The loading on itself failed.
Encoding(EncodingError)
The encoding of the resource failed.
Note: Resources are encoded as this allows shared resources to not be re-encoded every time they are used.
Trait Implementations
sourceimpl Debug for ResourceError
impl Debug for ResourceError
sourceimpl Display for ResourceError
impl Display for ResourceError
sourceimpl Fail for ResourceError
impl Fail for ResourceError
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<EncodingError> for ResourceError
impl From<EncodingError> for ResourceError
sourcefn from(err: EncodingError) -> Self
fn from(err: EncodingError) -> Self
Converts to this type from the input type.
sourceimpl From<ResourceError> for MailError
impl From<ResourceError> for MailError
sourcefn from(err: ResourceError) -> Self
fn from(err: ResourceError) -> Self
Converts to this type from the input type.
sourceimpl From<ResourceLoadingError> for ResourceError
impl From<ResourceLoadingError> for ResourceError
sourcefn from(err: ResourceLoadingError) -> Self
fn from(err: ResourceLoadingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ResourceError
impl Send for ResourceError
impl Sync for ResourceError
impl Unpin for ResourceError
impl !UnwindSafe for ResourceError
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