pub struct OwnedThreadReapError { /* private fields */ }Expand description
Failure returned by TaskSystem::reap_thread_handle.
A failed registry transition returns ownership of the strong handle, keeping the registry generation pinned while the caller handles the error.
Implementations§
Source§impl OwnedThreadReapError
impl OwnedThreadReapError
Sourcepub const fn task_error(&self) -> TaskError
pub const fn task_error(&self) -> TaskError
Returns the underlying scheduler error.
Sourcepub fn into_retry_handle(self) -> ThreadHandle
pub fn into_retry_handle(self) -> ThreadHandle
Returns the still-valid handle.
Trait Implementations§
Source§impl Debug for OwnedThreadReapError
impl Debug for OwnedThreadReapError
Source§impl Display for OwnedThreadReapError
impl Display for OwnedThreadReapError
Source§impl Error for OwnedThreadReapError
impl Error for OwnedThreadReapError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for OwnedThreadReapError
impl !UnwindSafe for OwnedThreadReapError
impl Freeze for OwnedThreadReapError
impl Send for OwnedThreadReapError
impl Sync for OwnedThreadReapError
impl Unpin for OwnedThreadReapError
impl UnsafeUnpin for OwnedThreadReapError
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