pub struct ProxyStatsCache { /* private fields */ }Implementations§
Source§impl ProxyStatsCache
impl ProxyStatsCache
pub fn new() -> Self
pub fn inc(&mut self, bucket: &str, api: &str, is_err: bool)
pub fn get_bucket_stats(&self, bucket: &str) -> ProxyMetric
pub fn bucket_names(&self) -> impl Iterator<Item = &str>
pub fn get_site_stats(&self) -> ProxyMetric
Trait Implementations§
Source§impl Clone for ProxyStatsCache
impl Clone for ProxyStatsCache
Source§fn clone(&self) -> ProxyStatsCache
fn clone(&self) -> ProxyStatsCache
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 ProxyStatsCache
impl Debug for ProxyStatsCache
Source§impl Default for ProxyStatsCache
impl Default for ProxyStatsCache
Source§fn default() -> ProxyStatsCache
fn default() -> ProxyStatsCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProxyStatsCache
impl RefUnwindSafe for ProxyStatsCache
impl Send for ProxyStatsCache
impl Sync for ProxyStatsCache
impl Unpin for ProxyStatsCache
impl UnsafeUnpin for ProxyStatsCache
impl UnwindSafe for ProxyStatsCache
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