pub struct StatisticsManager { /* private fields */ }Implementations§
Source§impl StatisticsManager
impl StatisticsManager
pub fn new() -> Self
pub fn with_kind_meta( kind_meta: HashMap<String, Arc<StatisticsKindMeta>>, ) -> Self
pub fn add_statistics_kind_meta(&self, kind_meta: Arc<StatisticsKindMeta>)
pub fn set_brief_meta(&mut self, brief_metas: Vec<(String, Vec<Vec<i64>>)>)
pub async fn inc( &self, kind: &str, key: &str, item_accumulates: Vec<i64>, ) -> bool
pub fn set_statistics_item_state_getter( &mut self, getter: Arc<dyn StatisticsItemStateGetter + Send + Sync>, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StatisticsManager
impl !RefUnwindSafe for StatisticsManager
impl Send for StatisticsManager
impl Sync for StatisticsManager
impl Unpin for StatisticsManager
impl !UnwindSafe for StatisticsManager
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