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§
Source§impl Debug for ResourceError
impl Debug for ResourceError
Source§impl Display for ResourceError
impl Display for ResourceError
Source§impl Fail for ResourceError
impl Fail for ResourceError
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<EncodingError> for ResourceError
impl From<EncodingError> for ResourceError
Source§fn from(err: EncodingError) -> Self
fn from(err: EncodingError) -> Self
Converts to this type from the input type.
Source§impl From<ResourceError> for MailError
impl From<ResourceError> for MailError
Source§fn from(err: ResourceError) -> Self
fn from(err: ResourceError) -> Self
Converts to this type from the input type.
Source§impl From<ResourceLoadingError> for ResourceError
impl From<ResourceLoadingError> for ResourceError
Source§fn from(err: ResourceLoadingError) -> Self
fn from(err: ResourceLoadingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ResourceError
impl !RefUnwindSafe for ResourceError
impl Send for ResourceError
impl Sync for ResourceError
impl Unpin for ResourceError
impl !UnwindSafe for ResourceError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more