pub enum ResourceNotUnloadableError {
InUse,
NoSource,
}
Expand description
Error returned when trying to unload and Resource
and it fails.
Variants
InUse
The resource can not be unloaded because its in use.
NoSource
The resource can not be unloaded because it doesn’t has a source.
Which means if we would unload it we could not reload it. Note
that unloading is just for thinks like caching, it doesn’t affect
the deletion/dropping of Resource
instances.
Trait Implementations
sourceimpl Clone for ResourceNotUnloadableError
impl Clone for ResourceNotUnloadableError
sourcefn clone(&self) -> ResourceNotUnloadableError
fn clone(&self) -> ResourceNotUnloadableError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ResourceNotUnloadableError
impl Debug for ResourceNotUnloadableError
sourceimpl Display for ResourceNotUnloadableError
impl Display for ResourceNotUnloadableError
sourceimpl Fail for ResourceNotUnloadableError
impl Fail for ResourceNotUnloadableError
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 moreimpl Copy for ResourceNotUnloadableError
Auto Trait Implementations
impl RefUnwindSafe for ResourceNotUnloadableError
impl Send for ResourceNotUnloadableError
impl Sync for ResourceNotUnloadableError
impl Unpin for ResourceNotUnloadableError
impl UnwindSafe for ResourceNotUnloadableError
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