pub struct JoinError<T> { /* private fields */ }Expand description
Errors returned by awaiting a JoinHandle.
Implementations§
Source§impl<T> JoinError<T>
 
impl<T> JoinError<T>
Sourcepub fn is_canceled(&self) -> bool
 
pub fn is_canceled(&self) -> bool
Returns true if a task failed to join because it was canceled.
Sourcepub fn is_completed(&self) -> bool
 
pub fn is_completed(&self) -> bool
Returns true if the task completed successfully before it was canceled.
Trait Implementations§
impl<T: Eq> Eq for JoinError<T>
impl<T> StructuralPartialEq for JoinError<T>
Auto Trait Implementations§
impl<T> Freeze for JoinError<T>where
    T: Freeze,
impl<T> RefUnwindSafe for JoinError<T>where
    T: RefUnwindSafe,
impl<T> Send for JoinError<T>where
    T: Send,
impl<T> Sync for JoinError<T>where
    T: Sync,
impl<T> Unpin for JoinError<T>where
    T: Unpin,
impl<T> UnwindSafe for JoinError<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