Struct stremio_core::analytics::State
source · struct State {
number: u64,
queue: VecDeque<EventsBatch>,
pending: Option<EventsBatch>,
}
Fields§
§number: u64
§queue: VecDeque<EventsBatch>
§pending: Option<EventsBatch>
Implementations§
source§impl State
impl State
fn next_number(&mut self) -> u64
fn pop_batch(&mut self) -> Option<EventsBatch>
fn push_event(&mut self, event: Event, auth_key: AuthKey)
fn revert_pending(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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