pub enum ExecuteErrorKind {
Shutdown,
NoCapacity,
// some variants omitted
}
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.
This executor has shut down and will no longer accept new futures to
spawn.
This executor has no more capacity to run more futures. Other futures
need to finish before this executor can accept another.
Formats the value using the given formatter. Read more
Performs copy-assignment from source
. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.