pub enum DerivationError {
InvalidPolicy {
source: RunPolicyError,
},
ArithmeticOverflow {
policy: String,
operation: String,
},
InvalidTaskIdForRunConstruction {
task_id: TaskId,
},
RunConstructionFailed {
task_id: TaskId,
source: RunInstanceConstructionError,
},
}Expand description
Error returned when run derivation fails.
Variants§
InvalidPolicy
The run policy payload is invalid for derivation.
Fields
§
source: RunPolicyErrorThe typed policy validation failure.
ArithmeticOverflow
Arithmetic overflow would occur during run derivation. This indicates the derivation request cannot be fulfilled with representable values.
Fields
InvalidTaskIdForRunConstruction
Run construction failed because the task identifier is nil/invalid.
RunConstructionFailed
Run construction failed for a reason other than task identifier shape.
Fields
§
source: RunInstanceConstructionErrorTyped construction failure returned by core run constructors.
Trait Implementations§
Source§impl Clone for DerivationError
impl Clone for DerivationError
Source§fn clone(&self) -> DerivationError
fn clone(&self) -> DerivationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DerivationError
impl Debug for DerivationError
Source§impl Display for DerivationError
impl Display for DerivationError
Source§impl Error for DerivationError
impl Error for DerivationError
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 DerivationError
impl PartialEq for DerivationError
impl Eq for DerivationError
impl StructuralPartialEq for DerivationError
Auto Trait Implementations§
impl Freeze for DerivationError
impl RefUnwindSafe for DerivationError
impl Send for DerivationError
impl Sync for DerivationError
impl Unpin for DerivationError
impl UnsafeUnpin for DerivationError
impl UnwindSafe for DerivationError
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