Enum tokio::prelude::future::ExecuteErrorKind
source · 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 more