pub enum BlockError {
ArcUnlockError,
ThreadJoinError,
MutexIntoInnerError,
}
Expand description
Error that can happen while calling .block()
Variants§
ArcUnlockError
Arc::into_inner() failed
ThreadJoinError
The background thread panicked
MutexIntoInnerError
Mutex::into_inner() failed
Trait Implementations§
Source§impl Clone for BlockError
impl Clone for BlockError
Source§fn clone(&self) -> BlockError
fn clone(&self) -> BlockError
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 BlockError
impl Debug for BlockError
Source§impl Hash for BlockError
impl Hash for BlockError
Source§impl Ord for BlockError
impl Ord for BlockError
Source§fn cmp(&self, other: &BlockError) -> Ordering
fn cmp(&self, other: &BlockError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BlockError
impl PartialEq for BlockError
Source§impl PartialOrd for BlockError
impl PartialOrd for BlockError
impl Copy for BlockError
impl Eq for BlockError
impl StructuralPartialEq for BlockError
Auto Trait Implementations§
impl Freeze for BlockError
impl RefUnwindSafe for BlockError
impl Send for BlockError
impl Sync for BlockError
impl Unpin for BlockError
impl UnwindSafe for BlockError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)