pub struct CensorStats {
pub packets_seen: u64,
pub packets_blocked: u64,
pub packets_throttled: u64,
pub rules_active: usize,
}Expand description
Censorship statistics.
Fields§
§packets_seen: u64§packets_blocked: u64§packets_throttled: u64§rules_active: usizeImplementations§
Source§impl CensorStats
impl CensorStats
pub fn block_rate(&self) -> f64
Trait Implementations§
Source§impl Clone for CensorStats
impl Clone for CensorStats
Source§fn clone(&self) -> CensorStats
fn clone(&self) -> CensorStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CensorStats
impl RefUnwindSafe for CensorStats
impl Send for CensorStats
impl Sync for CensorStats
impl Unpin for CensorStats
impl UnsafeUnpin for CensorStats
impl UnwindSafe for CensorStats
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