pub enum ThagCommonError {
LockError(String),
Io(Error),
Generic(String),
}Expand description
Error types for thag_common operations
Variants§
LockError(String)
Error acquiring mutex lock
Io(Error)
IO error
Generic(String)
Generic error with message
Trait Implementations§
Source§impl Debug for ThagCommonError
impl Debug for ThagCommonError
Source§impl Display for ThagCommonError
impl Display for ThagCommonError
Source§impl Error for ThagCommonError
impl Error for ThagCommonError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for ThagCommonError
impl From<Error> for ThagCommonError
Source§impl<T> From<PoisonError<T>> for ThagCommonError
impl<T> From<PoisonError<T>> for ThagCommonError
Source§fn from(err: PoisonError<T>) -> Self
fn from(err: PoisonError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ThagCommonError
impl !RefUnwindSafe for ThagCommonError
impl Send for ThagCommonError
impl Sync for ThagCommonError
impl Unpin for ThagCommonError
impl !UnwindSafe for ThagCommonError
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