pub struct HisStore { /* private fields */ }Expand description
Thread-safe in-memory time-series store.
Maps entity IDs to sorted vectors of HisItem, ordered by timestamp.
Implementations§
Source§impl HisStore
impl HisStore
Sourcepub fn write(&self, id: &str, new_items: Vec<HisItem>)
pub fn write(&self, id: &str, new_items: Vec<HisItem>)
Write history items for a given point ID.
Items are merged into the existing series and the result is kept sorted by timestamp. Duplicate timestamps are replaced.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for HisStore
impl !RefUnwindSafe for HisStore
impl Send for HisStore
impl Sync for HisStore
impl Unpin for HisStore
impl UnsafeUnpin for HisStore
impl UnwindSafe for HisStore
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