pub struct Trax { /* private fields */ }Implementations§
Source§impl Trax
impl Trax
pub fn new(params: Params) -> Result<Trax>
pub fn add_record(&mut self, record: TraxRecord) -> Result<UniqueId>
pub fn replace_record( &mut self, uid: UniqueId, record: TraxRecord, ) -> Result<UniqueId>
pub fn get_record(&self, uid: &UniqueId) -> Result<Option<TraxRecord>>
pub fn remove_record(&mut self, uid: &UniqueId) -> Result<()>
pub fn get_history( &self, start: DateTimeTz, end: DateTimeTz, ) -> Result<Vec<(&UniqueId, &TraxRecord)>>
Auto Trait Implementations§
impl Freeze for Trax
impl RefUnwindSafe for Trax
impl Send for Trax
impl Sync for Trax
impl Unpin for Trax
impl UnwindSafe for Trax
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