pub enum RuleStatus {
Pass,
Warn(String),
Fail(String),
NotApplicable(String),
Error(String),
}Expand description
The result of one rule or preset check on one tick.
Variants§
Pass
Warn(String)
A preset check warned (P2).
Fail(String)
NotApplicable(String)
The check does not apply here, for example spread on an AMM book.
Error(String)
The value could not be read: health is unknown.
Implementations§
Trait Implementations§
Source§impl Clone for RuleStatus
impl Clone for RuleStatus
Source§impl Debug for RuleStatus
impl Debug for RuleStatus
Source§impl PartialEq for RuleStatus
impl PartialEq for RuleStatus
impl StructuralPartialEq for RuleStatus
Auto Trait Implementations§
impl Forget for RuleStatus
impl Freeze for RuleStatus
impl RefUnwindSafe for RuleStatus
impl Send for RuleStatus
impl Sync for RuleStatus
impl Unpin for RuleStatus
impl UnsafeUnpin for RuleStatus
impl UnwindSafe for RuleStatus
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