pub struct QueueCache {
pub bucket_stats: HashMap<String, InQueueMetric>,
pub sr_queue_stats: InQueueMetric,
}Fields§
§bucket_stats: HashMap<String, InQueueMetric>§sr_queue_stats: InQueueMetricImplementations§
Source§impl QueueCache
impl QueueCache
pub fn new() -> Self
pub fn inc(&mut self, bucket: &str, size: i64)
pub fn dec(&mut self, bucket: &str, size: i64)
pub fn update(&mut self)
pub fn get_bucket_stats(&self, bucket: &str) -> InQueueMetric
pub fn get_site_stats(&self) -> InQueueMetric
Trait Implementations§
Source§impl Debug for QueueCache
impl Debug for QueueCache
Auto Trait Implementations§
impl !Freeze for QueueCache
impl RefUnwindSafe for QueueCache
impl Send for QueueCache
impl Sync for QueueCache
impl Unpin for QueueCache
impl UnsafeUnpin for QueueCache
impl UnwindSafe for QueueCache
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