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§
Source§impl Clone for ResourceLoadingErrorKind
impl Clone for ResourceLoadingErrorKind
Source§fn clone(&self) -> ResourceLoadingErrorKind
fn clone(&self) -> ResourceLoadingErrorKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResourceLoadingErrorKind
impl Debug for ResourceLoadingErrorKind
Source§impl Display for ResourceLoadingErrorKind
impl Display for ResourceLoadingErrorKind
Source§impl Fail for ResourceLoadingErrorKind
impl Fail for ResourceLoadingErrorKind
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<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.
Source§impl Hash for ResourceLoadingErrorKind
impl Hash for ResourceLoadingErrorKind
Source§impl PartialEq for ResourceLoadingErrorKind
impl PartialEq for ResourceLoadingErrorKind
impl Copy for ResourceLoadingErrorKind
impl Eq for ResourceLoadingErrorKind
impl StructuralPartialEq for ResourceLoadingErrorKind
Auto Trait Implementations§
impl Freeze for ResourceLoadingErrorKind
impl RefUnwindSafe for ResourceLoadingErrorKind
impl Send for ResourceLoadingErrorKind
impl Sync for ResourceLoadingErrorKind
impl Unpin for ResourceLoadingErrorKind
impl UnwindSafe for ResourceLoadingErrorKind
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