pub struct SecurityMetrics { /* private fields */ }Expand description
Atomic counter bundle, cheap to clone.
Implementations§
Source§impl SecurityMetrics
impl SecurityMetrics
Sourcepub fn record_ssrf_block(&self, class: IpClass)
pub fn record_ssrf_block(&self, class: IpClass)
Increment the SSRF block counter for class.
Sourcepub fn ssrf_blocked_total(&self, class: IpClass) -> u64
pub fn ssrf_blocked_total(&self, class: IpClass) -> u64
Read the SSRF block counter for class.
Sourcepub fn record_dotfile_deny(&self)
pub fn record_dotfile_deny(&self)
Increment the dotfile-deny counter.
Sourcepub fn dotfile_denied_total(&self) -> u64
pub fn dotfile_denied_total(&self) -> u64
Read the dotfile-deny counter.
Trait Implementations§
Source§impl Clone for SecurityMetrics
impl Clone for SecurityMetrics
Source§fn clone(&self) -> SecurityMetrics
fn clone(&self) -> SecurityMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecurityMetrics
impl Debug for SecurityMetrics
Source§impl Default for SecurityMetrics
impl Default for SecurityMetrics
Source§fn default() -> SecurityMetrics
fn default() -> SecurityMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SecurityMetrics
impl RefUnwindSafe for SecurityMetrics
impl Send for SecurityMetrics
impl Sync for SecurityMetrics
impl Unpin for SecurityMetrics
impl UnsafeUnpin for SecurityMetrics
impl UnwindSafe for SecurityMetrics
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