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§impl Debug for ProxyStatsCache
impl Debug for ProxyStatsCache
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