#[non_exhaustive]pub enum ConstraintError {
UnknownTask(TaskId),
DuplicateTask(TaskId),
Shape,
Diagonal,
UnsupportedCode(i8),
TimingShape,
TimingDiagonal,
TimingWithoutDependency,
}Expand description
Why an activity was rejected.
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.
UnknownTask(TaskId)
A task identifier is not below the task count.
DuplicateTask(TaskId)
A task appears twice in one activity, or already belongs to another activity.
Shape
The matrix is not square with one row per task.
Diagonal
A diagonal entry is not zero.
UnsupportedCode(i8)
An entry is not -1, 0 or 1.
TimingShape
The timing matrix is not square with one row per task.
TimingDiagonal
A diagonal entry of the timing matrix is not zero or unbounded.
TimingWithoutDependency
The timing matrix limits two tasks that do not depend on each other in either direction; the paper defines no windows or release rules for those.
Trait Implementations§
Source§impl Clone for ConstraintError
impl Clone for ConstraintError
impl Copy for ConstraintError
Source§impl Debug for ConstraintError
impl Debug for ConstraintError
Source§impl Display for ConstraintError
impl Display for ConstraintError
impl Eq for ConstraintError
Source§impl Error for ConstraintError
impl Error for ConstraintError
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 PartialEq for ConstraintError
impl PartialEq for ConstraintError
impl StructuralPartialEq for ConstraintError
Auto Trait Implementations§
impl Forget for ConstraintError
impl Freeze for ConstraintError
impl Move for ConstraintError
impl RefUnwindSafe for ConstraintError
impl Send for ConstraintError
impl Sync for ConstraintError
impl Unpin for ConstraintError
impl UnsafeUnpin for ConstraintError
impl UnwindSafe for ConstraintError
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