pub(crate) enum SpawnError {
ShuttingDown,
NoThreads(Error),
}
Variants§
ShuttingDown
Pool is shutting down and the task was not scheduled
NoThreads(Error)
There are no worker threads available to take the task and the OS failed to spawn a new one
Trait Implementations§
source§impl From<SpawnError> for Error
impl From<SpawnError> for Error
source§fn from(e: SpawnError) -> Self
fn from(e: SpawnError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SpawnError
impl !RefUnwindSafe for SpawnError
impl Send for SpawnError
impl Sync for SpawnError
impl Unpin for SpawnError
impl !UnwindSafe for SpawnError
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