pub enum ModuleStateError {
ModuleLockIsPoisoned,
ModuleHasBeenCleared,
FailedInit {
source: ModuleInitError,
},
}
Expand description
Type definition for treating an instance of information management as an error when it is in a state where information cannot be obtained.
Variants§
ModuleLockIsPoisoned
The thread that was getting Module’s lock panicked.
ModuleHasBeenCleared
Module has been cleared
FailedInit
Module initialization error
Fields
§
source: ModuleInitError
Trait Implementations§
Source§impl Clone for ModuleStateError
impl Clone for ModuleStateError
Source§fn clone(&self) -> ModuleStateError
fn clone(&self) -> ModuleStateError
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 ModuleStateError
impl Debug for ModuleStateError
Source§impl Display for ModuleStateError
impl Display for ModuleStateError
Source§impl Error for ModuleStateError
impl Error for ModuleStateError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for ModuleStateError
impl ErrorCompat for ModuleStateError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl From<ModuleStateError> for DataBaseError
impl From<ModuleStateError> for DataBaseError
Source§fn from(error: ModuleStateError) -> Self
fn from(error: ModuleStateError) -> Self
Converts to this type from the input type.
Source§impl From<ModuleStateError> for RelocationError
impl From<ModuleStateError> for RelocationError
Source§fn from(error: ModuleStateError) -> Self
fn from(error: ModuleStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ModuleStateError
impl RefUnwindSafe for ModuleStateError
impl Send for ModuleStateError
impl Sync for ModuleStateError
impl Unpin for ModuleStateError
impl UnwindSafe for ModuleStateError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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