pub enum ExecutorError {
ShuttingDown,
AlreadyRunning,
InvalidConfiguration,
InvalidLocalQueueInitialCapacity {
requested: usize,
},
ThreadPoolCreationFailed,
SpawnFailed(TaskError),
ResourceExhausted(String),
PerformanceAnomaly(String),
NoSchedulerAvailable,
SchedulerError(SchedulerError),
WorkerPlacementFailed {
worker: usize,
processor: u32,
cause: PlacementFailure,
},
}Expand description
Errors that can occur during executor operations.
Variants§
ShuttingDown
Executor is shutting down
AlreadyRunning
Executor is already running
InvalidConfiguration
Executor configuration is invalid
InvalidLocalQueueInitialCapacity
The requested local queue initial capacity cannot form a supported allocation.
ThreadPoolCreationFailed
Thread pool creation failed
SpawnFailed(TaskError)
Task spawn failed
ResourceExhausted(String)
Resource exhaustion detected
PerformanceAnomaly(String)
Performance anomaly detected
NoSchedulerAvailable
No scheduler available
SchedulerError(SchedulerError)
Scheduler error
WorkerPlacementFailed
A worker could not be confined to its planned logical processor.
Reported by construction under
WorkerPlacement::Pinned.
When several workers fail, the lowest-numbered one is named. The
scheduler was not started: no worker outlives the failed construction.
Trait Implementations§
Source§impl Clone for ExecutorError
impl Clone for ExecutorError
Source§impl Debug for ExecutorError
impl Debug for ExecutorError
Source§impl Display for ExecutorError
impl Display for ExecutorError
impl Eq for ExecutorError
Source§impl Error for ExecutorError
Available on crate feature std only.
impl Error for ExecutorError
Available on crate feature
std only.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 PartialEq for ExecutorError
impl PartialEq for ExecutorError
impl StructuralPartialEq for ExecutorError
Auto Trait Implementations§
impl Freeze for ExecutorError
impl RefUnwindSafe for ExecutorError
impl Send for ExecutorError
impl Sync for ExecutorError
impl Unpin for ExecutorError
impl UnsafeUnpin for ExecutorError
impl UnwindSafe for ExecutorError
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