pub enum InjectionPolicyError {
Parse(String),
SchemaVersionMismatch {
found: u32,
expected: u32,
},
InvalidWeight {
field: String,
value: f64,
},
}Expand description
All the ways injection-policy parsing can fail.
Variants§
Parse(String)
TOML body did not parse against the InjectionPolicy shape.
SchemaVersionMismatch
schema_version did not match SCHEMA_VERSION.
InvalidWeight
A weight/threshold was non-finite, negative, or out of 0.0..=1.0.
Trait Implementations§
Source§impl Debug for InjectionPolicyError
impl Debug for InjectionPolicyError
Source§impl Display for InjectionPolicyError
impl Display for InjectionPolicyError
Source§impl Error for InjectionPolicyError
impl Error for InjectionPolicyError
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 InjectionPolicyError
impl RefUnwindSafe for InjectionPolicyError
impl Send for InjectionPolicyError
impl Sync for InjectionPolicyError
impl Unpin for InjectionPolicyError
impl UnsafeUnpin for InjectionPolicyError
impl UnwindSafe for InjectionPolicyError
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