pub struct Layer1Stats {
pub use_count: u32,
pub conn_count: u32,
}Expand description
Per-guard usage statistics.
Tracks how many times a guard has been used and how many connections have been made to it. This helps detect anomalies in guard usage patterns.
§Fields
use_count- Number of times this guard has been used in circuitsconn_count- Number of active connections to this guard
§Example
use vanguards_rs::pathverify::Layer1Stats;
let stats = Layer1Stats::new();
assert_eq!(stats.use_count, 0);
assert_eq!(stats.conn_count, 1);§See Also
Layer1Guards- Container for guard statistics
Fields§
§use_count: u32Number of times this guard has been used in circuits.
conn_count: u32Number of connections to this guard.
Implementations§
Source§impl Layer1Stats
impl Layer1Stats
Trait Implementations§
Source§impl Clone for Layer1Stats
impl Clone for Layer1Stats
Source§fn clone(&self) -> Layer1Stats
fn clone(&self) -> Layer1Stats
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 moreSource§impl Debug for Layer1Stats
impl Debug for Layer1Stats
Source§impl Default for Layer1Stats
impl Default for Layer1Stats
Source§fn default() -> Layer1Stats
fn default() -> Layer1Stats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Layer1Stats
impl RefUnwindSafe for Layer1Stats
impl Send for Layer1Stats
impl Sync for Layer1Stats
impl Unpin for Layer1Stats
impl UnwindSafe for Layer1Stats
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