pub struct ResourceLoadingError { /* private fields */ }
Expand description
The loading of an Resource failed.
Implementations§
Source§impl 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) -> ResourceLoadingError
pub fn with_source_iri_or_else<F>(self, func: F) -> ResourceLoadingError
Sets the source IRI if not already set and returns self.
Trait Implementations§
Source§impl Debug for ResourceLoadingError
impl Debug for ResourceLoadingError
Source§impl Display for ResourceLoadingError
impl Display for ResourceLoadingError
Source§impl Fail for ResourceLoadingError
impl Fail for ResourceLoadingError
Source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
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<(IRI, Context<ResourceLoadingErrorKind>)> for ResourceLoadingError
impl From<(IRI, Context<ResourceLoadingErrorKind>)> for ResourceLoadingError
Source§fn from(_: (IRI, Context<ResourceLoadingErrorKind>)) -> ResourceLoadingError
fn from(_: (IRI, Context<ResourceLoadingErrorKind>)) -> ResourceLoadingError
Converts to this type from the input type.
Source§impl From<(IRI, ResourceLoadingErrorKind)> for ResourceLoadingError
impl From<(IRI, ResourceLoadingErrorKind)> for ResourceLoadingError
Source§fn from(_: (IRI, ResourceLoadingErrorKind)) -> ResourceLoadingError
fn from(_: (IRI, ResourceLoadingErrorKind)) -> ResourceLoadingError
Converts to this type from the input type.
Source§impl From<(Option<IRI>, Context<ResourceLoadingErrorKind>)> for ResourceLoadingError
impl From<(Option<IRI>, Context<ResourceLoadingErrorKind>)> for ResourceLoadingError
Source§fn from(
_: (Option<IRI>, Context<ResourceLoadingErrorKind>),
) -> ResourceLoadingError
fn from( _: (Option<IRI>, Context<ResourceLoadingErrorKind>), ) -> ResourceLoadingError
Converts to this type from the input type.
Source§impl From<(Option<IRI>, ResourceLoadingErrorKind)> for ResourceLoadingError
impl From<(Option<IRI>, ResourceLoadingErrorKind)> for ResourceLoadingError
Source§fn from(_: (Option<IRI>, ResourceLoadingErrorKind)) -> ResourceLoadingError
fn from(_: (Option<IRI>, ResourceLoadingErrorKind)) -> ResourceLoadingError
Converts to this type from the input type.
Source§impl From<Context<ResourceLoadingErrorKind>> for ResourceLoadingError
impl From<Context<ResourceLoadingErrorKind>> for ResourceLoadingError
Source§fn from(inner: Context<ResourceLoadingErrorKind>) -> ResourceLoadingError
fn from(inner: Context<ResourceLoadingErrorKind>) -> ResourceLoadingError
Converts to this type from the input type.
Source§impl From<Error> for ResourceLoadingError
impl From<Error> for ResourceLoadingError
Source§fn from(err: Error) -> ResourceLoadingError
fn from(err: Error) -> ResourceLoadingError
Converts to this type from the input type.
Source§impl From<ResourceLoadingError> for MailError
impl From<ResourceLoadingError> for MailError
Source§fn from(err: ResourceLoadingError) -> MailError
fn from(err: ResourceLoadingError) -> MailError
Converts to this type from the input type.
Source§impl From<ResourceLoadingError> for ResourceError
impl From<ResourceLoadingError> for ResourceError
Source§fn from(err: ResourceLoadingError) -> ResourceError
fn from(err: ResourceLoadingError) -> ResourceError
Converts to this type from the input type.
Source§impl From<ResourceLoadingErrorKind> for ResourceLoadingError
impl From<ResourceLoadingErrorKind> for ResourceLoadingError
Source§fn from(err: ResourceLoadingErrorKind) -> ResourceLoadingError
fn from(err: ResourceLoadingErrorKind) -> ResourceLoadingError
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ResourceLoadingError
impl !RefUnwindSafe for ResourceLoadingError
impl Send for ResourceLoadingError
impl Sync for ResourceLoadingError
impl Unpin for ResourceLoadingError
impl !UnwindSafe for ResourceLoadingError
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