pub struct WrongThreadError;
Expand description
An error returned by ThreadLock::try_get
and ThreadLock::try_get_mut
.
Trait Implementations§
Source§impl Clone for WrongThreadError
impl Clone for WrongThreadError
Source§fn clone(&self) -> WrongThreadError
fn clone(&self) -> WrongThreadError
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 WrongThreadError
impl Debug for WrongThreadError
Source§impl Default for WrongThreadError
impl Default for WrongThreadError
Source§fn default() -> WrongThreadError
fn default() -> WrongThreadError
Returns the “default value” for a type. Read more
Source§impl Display for WrongThreadError
impl Display for WrongThreadError
Source§impl Error for WrongThreadError
impl Error for WrongThreadError
1.30.0 · 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<T> From<TryIntoWrongThreadError<T>> for WrongThreadError
impl<T> From<TryIntoWrongThreadError<T>> for WrongThreadError
Source§fn from(_: TryIntoWrongThreadError<T>) -> Self
fn from(_: TryIntoWrongThreadError<T>) -> Self
Converts to this type from the input type.
Source§impl Hash for WrongThreadError
impl Hash for WrongThreadError
Source§impl PartialEq for WrongThreadError
impl PartialEq for WrongThreadError
impl Copy for WrongThreadError
impl Eq for WrongThreadError
impl StructuralPartialEq for WrongThreadError
Auto Trait Implementations§
impl Freeze for WrongThreadError
impl RefUnwindSafe for WrongThreadError
impl Send for WrongThreadError
impl Sync for WrongThreadError
impl Unpin for WrongThreadError
impl UnwindSafe for WrongThreadError
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