pub struct TryIntoWrongThreadError<T>(pub T);
Expand description
An error returned by ThreadLock::try_into_inner
.
Spiritually equivalent to WrongThreadError
, but with a data field to return the ThreadLock
that would otherwise be lost if a call to ThreadLock::try_into_inner
failed.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Clone> Clone for TryIntoWrongThreadError<T>
impl<T: Clone> Clone for TryIntoWrongThreadError<T>
Source§fn clone(&self) -> TryIntoWrongThreadError<T>
fn clone(&self) -> TryIntoWrongThreadError<T>
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<T> Debug for TryIntoWrongThreadError<T>
impl<T> Debug for TryIntoWrongThreadError<T>
Source§impl<T: Default> Default for TryIntoWrongThreadError<T>
impl<T: Default> Default for TryIntoWrongThreadError<T>
Source§fn default() -> TryIntoWrongThreadError<T>
fn default() -> TryIntoWrongThreadError<T>
Returns the “default value” for a type. Read more
Source§impl<T> Display for TryIntoWrongThreadError<T>
impl<T> Display for TryIntoWrongThreadError<T>
Source§impl<T> Error for TryIntoWrongThreadError<T>
impl<T> Error for TryIntoWrongThreadError<T>
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<T: Hash> Hash for TryIntoWrongThreadError<T>
impl<T: Hash> Hash for TryIntoWrongThreadError<T>
Source§impl<T: PartialEq> PartialEq for TryIntoWrongThreadError<T>
impl<T: PartialEq> PartialEq for TryIntoWrongThreadError<T>
impl<T: Copy> Copy for TryIntoWrongThreadError<T>
impl<T: Eq> Eq for TryIntoWrongThreadError<T>
impl<T> StructuralPartialEq for TryIntoWrongThreadError<T>
Auto Trait Implementations§
impl<T> Freeze for TryIntoWrongThreadError<T>where
T: Freeze,
impl<T> RefUnwindSafe for TryIntoWrongThreadError<T>where
T: RefUnwindSafe,
impl<T> Send for TryIntoWrongThreadError<T>where
T: Send,
impl<T> Sync for TryIntoWrongThreadError<T>where
T: Sync,
impl<T> Unpin for TryIntoWrongThreadError<T>where
T: Unpin,
impl<T> UnwindSafe for TryIntoWrongThreadError<T>where
T: UnwindSafe,
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