#[non_exhaustive]pub enum PlanError {
EmptyOrZeroWeight,
Overflow,
AlreadyInUse,
NotALeaf,
Unsupported,
NotShareable,
Finished,
UnfinishedChildren,
NoMoreStages,
StageMismatch,
}Expand description
A phase plan that cannot be applied, or a lifecycle step out of order.
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.
EmptyOrZeroWeight
A split needs at least one part, and every weight must be positive.
Overflow
The weights’ sum or the job’s phase identifiers overflowed.
AlreadyInUse
The phase already counted work or planned children. Plan once, first.
NotALeaf
The phase has children; only a leaf has its own total.
Unsupported
This pulse cannot plan children.
This borrowed implementation cannot provide an owned pulse.
Finished
The phase already has an outcome.
UnfinishedChildren
Every child must finish before its parent.
NoMoreStages
Every declared stage has already run.
StageMismatch
A stage reservation does not match the next declaration in this sequence.
Trait Implementations§
impl Copy for PlanError
impl Eq for PlanError
Source§impl Error for PlanError
impl Error for PlanError
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()
impl StructuralPartialEq for PlanError
Auto Trait Implementations§
impl Freeze for PlanError
impl RefUnwindSafe for PlanError
impl Send for PlanError
impl Sync for PlanError
impl Unpin for PlanError
impl UnsafeUnpin for PlanError
impl UnwindSafe for PlanError
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