pub enum ParityError {
InvalidPolicy(String),
AmbiguousRule(String),
Incomparable(String),
}Expand description
Invalid comparison policy or incompatible observations.
Variants§
InvalidPolicy(String)
A comparison threshold is invalid.
AmbiguousRule(String)
More than one rule matched the same path.
Incomparable(String)
Selected values cannot be compared by the requested method.
Trait Implementations§
Source§impl Clone for ParityError
impl Clone for ParityError
Source§fn clone(&self) -> ParityError
fn clone(&self) -> ParityError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParityError
impl Debug for ParityError
Source§impl Display for ParityError
impl Display for ParityError
impl Eq for ParityError
Source§impl Error for ParityError
impl Error for ParityError
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 From<ParityError> for CheckpointParityError
impl From<ParityError> for CheckpointParityError
Source§fn from(source: ParityError) -> Self
fn from(source: ParityError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ParityError
impl PartialEq for ParityError
impl StructuralPartialEq for ParityError
Auto Trait Implementations§
impl Freeze for ParityError
impl RefUnwindSafe for ParityError
impl Send for ParityError
impl Sync for ParityError
impl Unpin for ParityError
impl UnsafeUnpin for ParityError
impl UnwindSafe for ParityError
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