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