pub struct CspStats { /* private fields */ }Implementations§
Source§impl CspStats
impl CspStats
pub fn request_count(&self) -> usize
pub fn nonce_generation_count(&self) -> usize
pub fn policy_update_count(&self) -> usize
pub fn avg_header_generation_time_ns(&self) -> f64
pub fn violation_count(&self) -> usize
pub fn cache_hit_count(&self) -> usize
pub fn total_policy_hash_time_ns(&self) -> usize
pub fn total_policy_serialize_time_ns(&self) -> usize
pub fn policy_validations(&self) -> usize
pub fn uptime_secs(&self) -> u64
pub fn requests_per_second(&self) -> f64
pub fn new() -> Self
pub fn reset(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CspStats
impl RefUnwindSafe for CspStats
impl Send for CspStats
impl Sync for CspStats
impl Unpin for CspStats
impl UnsafeUnpin for CspStats
impl UnwindSafe for CspStats
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