pub enum ExecuteErrorKind {
Shutdown,
NoCapacity,
// some variants omitted
}
Expand description
Kinds of errors that can be returned from the Execute::spawn
function.
Executors which may not always be able to accept a future may return one of these errors, indicating why it was unable to spawn a future.
Variants§
Shutdown
This executor has shut down and will no longer accept new futures to spawn.
NoCapacity
This executor has no more capacity to run more futures. Other futures need to finish before this executor can accept another.
Trait Implementations§
Source§impl Clone for ExecuteErrorKind
impl Clone for ExecuteErrorKind
Source§fn clone(&self) -> ExecuteErrorKind
fn clone(&self) -> ExecuteErrorKind
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 ExecuteErrorKind
impl Debug for ExecuteErrorKind
Source§impl PartialEq for ExecuteErrorKind
impl PartialEq for ExecuteErrorKind
impl Copy for ExecuteErrorKind
impl StructuralPartialEq for ExecuteErrorKind
Auto Trait Implementations§
impl Freeze for ExecuteErrorKind
impl RefUnwindSafe for ExecuteErrorKind
impl Send for ExecuteErrorKind
impl Sync for ExecuteErrorKind
impl Unpin for ExecuteErrorKind
impl UnwindSafe for ExecuteErrorKind
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