pub struct ExecuteError<F> { /* private fields */ }
Expand description
Errors returned from the Spawn::spawn
function.
Implementations
sourceimpl<F> ExecuteError<F>
impl<F> ExecuteError<F>
sourcepub fn new(kind: ExecuteErrorKind, future: F) -> ExecuteError<F>
pub fn new(kind: ExecuteErrorKind, future: F) -> ExecuteError<F>
Create a new ExecuteError
sourcepub fn kind(&self) -> ExecuteErrorKind
pub fn kind(&self) -> ExecuteErrorKind
Returns the associated reason for the error
sourcepub fn into_future(self) -> F
pub fn into_future(self) -> F
Consumes self and returns the original future that was spawned.
Trait Implementations
Auto Trait Implementations
impl<F> RefUnwindSafe for ExecuteError<F> where
F: RefUnwindSafe,
impl<F> Send for ExecuteError<F> where
F: Send,
impl<F> Sync for ExecuteError<F> where
F: Sync,
impl<F> Unpin for ExecuteError<F> where
F: Unpin,
impl<F> UnwindSafe for ExecuteError<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more