pub enum ProfileValidationError {
TargetRatioMismatch {
profile: String,
targets: usize,
ratios: usize,
},
RatioSumExceeded {
profile: String,
sum: f64,
},
RatioSumIncomplete {
profile: String,
sum: f64,
},
ZeroRatio {
profile: String,
},
ZeroTargetIndex {
profile: String,
},
DuplicateTargetIndex {
profile: String,
index: usize,
},
InvalidConfiguration {
profile: String,
reason: String,
},
}Expand description
Errors returned while validating a management profile definition.
Variants§
TargetRatioMismatch
RatioSumExceeded
RatioSumIncomplete
ZeroRatio
ZeroTargetIndex
DuplicateTargetIndex
InvalidConfiguration
Trait Implementations§
Source§impl Debug for ProfileValidationError
impl Debug for ProfileValidationError
Source§impl Display for ProfileValidationError
impl Display for ProfileValidationError
Source§impl Error for ProfileValidationError
impl Error for ProfileValidationError
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()
Auto Trait Implementations§
impl Freeze for ProfileValidationError
impl RefUnwindSafe for ProfileValidationError
impl Send for ProfileValidationError
impl Sync for ProfileValidationError
impl Unpin for ProfileValidationError
impl UnsafeUnpin for ProfileValidationError
impl UnwindSafe for ProfileValidationError
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