pub struct AsyncExecuteError { /* private fields */ }Expand description
An executor rejection that returns ownership of the job it did not run.
Implementations§
Source§impl AsyncExecuteError
impl AsyncExecuteError
Sourcepub fn new(error: AsyncSubmitError, job: AsyncJob) -> Self
pub fn new(error: AsyncSubmitError, job: AsyncJob) -> Self
Creates a rejection that returns the closure which was never accepted.
The executor must not have invoked job; the caller may use
Self::into_parts to recover it for another owner or disposal.
Sourcepub fn error(&self) -> AsyncSubmitError
pub fn error(&self) -> AsyncSubmitError
Returns the reason this executor declined the job.
Sourcepub fn into_parts(self) -> (AsyncSubmitError, AsyncJob)
pub fn into_parts(self) -> (AsyncSubmitError, AsyncJob)
Splits this rejection into its reason and the still-unexecuted job.
Trait Implementations§
Source§impl Debug for AsyncExecuteError
impl Debug for AsyncExecuteError
Source§impl Display for AsyncExecuteError
impl Display for AsyncExecuteError
Source§impl Error for AsyncExecuteError
impl Error for AsyncExecuteError
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 AsyncExecuteError
impl !Sync for AsyncExecuteError
impl !UnwindSafe for AsyncExecuteError
impl Freeze for AsyncExecuteError
impl Send for AsyncExecuteError
impl Unpin for AsyncExecuteError
impl UnsafeUnpin for AsyncExecuteError
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