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§
Source§impl Clone for ResourceNotUnloadableError
impl Clone for ResourceNotUnloadableError
Source§fn clone(&self) -> ResourceNotUnloadableError
fn clone(&self) -> ResourceNotUnloadableError
Returns a duplicate 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 ResourceNotUnloadableError
impl Debug for ResourceNotUnloadableError
Source§impl Display for ResourceNotUnloadableError
impl Display for ResourceNotUnloadableError
Source§impl Fail for ResourceNotUnloadableError
impl Fail for ResourceNotUnloadableError
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 moreimpl Copy for ResourceNotUnloadableError
Auto Trait Implementations§
impl Freeze for ResourceNotUnloadableError
impl RefUnwindSafe for ResourceNotUnloadableError
impl Send for ResourceNotUnloadableError
impl Sync for ResourceNotUnloadableError
impl Unpin for ResourceNotUnloadableError
impl UnwindSafe for ResourceNotUnloadableError
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