Enum twilio_async::future::ExecuteErrorKind [−][src]
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.
Variants
ShutdownThis executor has shut down and will no longer accept new futures to spawn.
NoCapacityThis executor has no more capacity to run more futures. Other futures need to finish before this executor can accept another.
Trait Implementations
impl Debug for ExecuteErrorKind[src]
impl Debug for ExecuteErrorKindfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Clone for ExecuteErrorKind[src]
impl Clone for ExecuteErrorKindfn clone(&self) -> ExecuteErrorKind[src]
fn clone(&self) -> ExecuteErrorKindReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq<ExecuteErrorKind> for ExecuteErrorKind[src]
impl PartialEq<ExecuteErrorKind> for ExecuteErrorKindfn eq(&self, other: &ExecuteErrorKind) -> bool[src]
fn eq(&self, other: &ExecuteErrorKind) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Copy for ExecuteErrorKind[src]
impl Copy for ExecuteErrorKindAuto Trait Implementations
impl Send for ExecuteErrorKind
impl Send for ExecuteErrorKindimpl Sync for ExecuteErrorKind
impl Sync for ExecuteErrorKind