Struct mail_core::error::ResourceLoadingError
source · pub struct ResourceLoadingError { /* private fields */ }
Expand description
The loading of an Resource failed.
Implementations
sourceimpl ResourceLoadingError
impl ResourceLoadingError
sourcepub fn kind(&self) -> ResourceLoadingErrorKind
pub fn kind(&self) -> ResourceLoadingErrorKind
The kind of error which caused the loading to fail.
sourcepub fn source_iri(&self) -> Option<&IRI>
pub fn source_iri(&self) -> Option<&IRI>
The source IRI which was used when failing to load the Resource.
sourcepub fn with_source_iri_or_else<F>(self, func: F) -> Selfwhere
F: FnOnce() -> Option<IRI>,
pub fn with_source_iri_or_else<F>(self, func: F) -> Selfwhere
F: FnOnce() -> Option<IRI>,
Sets the source IRI if not already set and returns self.
Trait Implementations
sourceimpl Debug for ResourceLoadingError
impl Debug for ResourceLoadingError
sourceimpl Display for ResourceLoadingError
impl Display for ResourceLoadingError
sourceimpl Fail for ResourceLoadingError
impl Fail for ResourceLoadingError
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<(IRI, Context<ResourceLoadingErrorKind>)> for ResourceLoadingError
impl From<(IRI, Context<ResourceLoadingErrorKind>)> for ResourceLoadingError
sourcefn from((iri, inner): (IRI, Context<ResourceLoadingErrorKind>)) -> Self
fn from((iri, inner): (IRI, Context<ResourceLoadingErrorKind>)) -> Self
Converts to this type from the input type.
sourceimpl From<(IRI, ResourceLoadingErrorKind)> for ResourceLoadingError
impl From<(IRI, ResourceLoadingErrorKind)> for ResourceLoadingError
sourcefn from((iri, error_kind): (IRI, ResourceLoadingErrorKind)) -> Self
fn from((iri, error_kind): (IRI, ResourceLoadingErrorKind)) -> Self
Converts to this type from the input type.
sourceimpl From<(Option<IRI>, Context<ResourceLoadingErrorKind>)> for ResourceLoadingError
impl From<(Option<IRI>, Context<ResourceLoadingErrorKind>)> for ResourceLoadingError
sourceimpl From<(Option<IRI>, ResourceLoadingErrorKind)> for ResourceLoadingError
impl From<(Option<IRI>, ResourceLoadingErrorKind)> for ResourceLoadingError
sourcefn from((iri, error_kind): (Option<IRI>, ResourceLoadingErrorKind)) -> Self
fn from((iri, error_kind): (Option<IRI>, ResourceLoadingErrorKind)) -> Self
Converts to this type from the input type.
sourceimpl From<Context<ResourceLoadingErrorKind>> for ResourceLoadingError
impl From<Context<ResourceLoadingErrorKind>> for ResourceLoadingError
sourcefn from(inner: Context<ResourceLoadingErrorKind>) -> Self
fn from(inner: Context<ResourceLoadingErrorKind>) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for ResourceLoadingError
impl From<Error> for ResourceLoadingError
sourceimpl From<ResourceLoadingError> for MailError
impl From<ResourceLoadingError> for MailError
sourcefn from(err: ResourceLoadingError) -> Self
fn from(err: ResourceLoadingError) -> 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.
sourceimpl 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.
Auto Trait Implementations
impl !RefUnwindSafe for ResourceLoadingError
impl Send for ResourceLoadingError
impl Sync for ResourceLoadingError
impl Unpin for ResourceLoadingError
impl !UnwindSafe for ResourceLoadingError
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