pub struct RuleStats {
pub rules_added: u64,
pub rules_removed: u64,
pub rules_executed: u64,
pub rules_failed: u64,
pub rules_cleared: u64,
pub total_execution_time: Duration,
}
Expand description
Rule execution statistics
Fields§
§rules_added: u64
§rules_removed: u64
§rules_executed: u64
§rules_failed: u64
§rules_cleared: u64
§total_execution_time: Duration
Implementations§
Source§impl RuleStats
impl RuleStats
Sourcepub fn average_execution_time(&self) -> Duration
pub fn average_execution_time(&self) -> Duration
Get average execution time
Sourcepub fn success_rate(&self) -> f64
pub fn success_rate(&self) -> f64
Get success rate
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleStats
impl RefUnwindSafe for RuleStats
impl Send for RuleStats
impl Sync for RuleStats
impl Unpin for RuleStats
impl UnwindSafe for RuleStats
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