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
sourceimpl Clone for ExecuteErrorKind
impl Clone for ExecuteErrorKind
sourcepub fn clone(&self) -> ExecuteErrorKind
pub fn clone(&self) -> ExecuteErrorKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExecuteErrorKind
impl Debug for ExecuteErrorKind
sourceimpl PartialEq<ExecuteErrorKind> for ExecuteErrorKind
impl PartialEq<ExecuteErrorKind> for ExecuteErrorKind
impl Copy for ExecuteErrorKind
impl StructuralPartialEq for ExecuteErrorKind
Auto Trait Implementations
impl RefUnwindSafe for ExecuteErrorKind
impl Send for ExecuteErrorKind
impl Sync for ExecuteErrorKind
impl Unpin for ExecuteErrorKind
impl UnwindSafe for ExecuteErrorKind
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more