#[non_exhaustive]pub enum BeginError {
AlreadyStarted,
Spawn(SpawnError),
}Expand description
Why a begin method did not start a task.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AlreadyStarted
A task is running, or its result has not been taken yet.
Spawn(SpawnError)
The runtime could not start the task.
Trait Implementations§
Source§impl Clone for BeginError
impl Clone for BeginError
impl Copy for BeginError
Source§impl Debug for BeginError
impl Debug for BeginError
Source§impl Display for BeginError
impl Display for BeginError
impl Eq for BeginError
Source§impl Error for BeginError
Available on crate feature std only.
impl Error for BeginError
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<SpawnError> for BeginError
impl From<SpawnError> for BeginError
Source§fn from(err: SpawnError) -> Self
fn from(err: SpawnError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BeginError
impl PartialEq for BeginError
impl StructuralPartialEq for BeginError
Auto Trait Implementations§
impl Forget for BeginError
impl Freeze for BeginError
impl Move for BeginError
impl RefUnwindSafe for BeginError
impl Send for BeginError
impl Sync for BeginError
impl Unpin for BeginError
impl UnsafeUnpin for BeginError
impl UnwindSafe for BeginError
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