pub enum ProfileRegistryError {
Io(Error),
Parse(Error),
DuplicateName(String),
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,
},
NotFound(String),
}Expand description
Configuration-loading and registry failures for management profiles.
Variants§
Io(Error)
Parse(Error)
DuplicateName(String)
TargetRatioMismatch
RatioSumExceeded
RatioSumIncomplete
ZeroRatio
ZeroTargetIndex
DuplicateTargetIndex
InvalidConfiguration
NotFound(String)
Trait Implementations§
Source§impl Debug for ProfileRegistryError
impl Debug for ProfileRegistryError
Source§impl Display for ProfileRegistryError
impl Display for ProfileRegistryError
Source§impl Error for ProfileRegistryError
impl Error for ProfileRegistryError
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 From<Error> for ProfileRegistryError
impl From<Error> for ProfileRegistryError
Source§impl From<Error> for ProfileRegistryError
impl From<Error> for ProfileRegistryError
Source§impl From<ProfileValidationError> for ProfileRegistryError
impl From<ProfileValidationError> for ProfileRegistryError
Source§fn from(error: ProfileValidationError) -> Self
fn from(error: ProfileValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ProfileRegistryError
impl !UnwindSafe for ProfileRegistryError
impl Freeze for ProfileRegistryError
impl Send for ProfileRegistryError
impl Sync for ProfileRegistryError
impl Unpin for ProfileRegistryError
impl UnsafeUnpin for ProfileRegistryError
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