pub struct OperationLog { /* private fields */ }Expand description
Operation log for tracking changes
Implementations§
Source§impl OperationLog
impl OperationLog
Sourcepub fn log_operation(
&mut self,
operation: IndexUpdate,
result: Option<UpdateResult>,
pre_state_hash: String,
post_state_hash: Option<String>,
)
pub fn log_operation( &mut self, operation: IndexUpdate, result: Option<UpdateResult>, pre_state_hash: String, post_state_hash: Option<String>, )
Add operation to log
Sourcepub fn get_recent_operations(&self, count: usize) -> Vec<&OperationLogEntry>
pub fn get_recent_operations(&self, count: usize) -> Vec<&OperationLogEntry>
Get recent operations
Sourcepub fn find_operations<F>(&self, predicate: F) -> Vec<&OperationLogEntry>
pub fn find_operations<F>(&self, predicate: F) -> Vec<&OperationLogEntry>
Find operations by criteria
Auto Trait Implementations§
impl Freeze for OperationLog
impl RefUnwindSafe for OperationLog
impl Send for OperationLog
impl Sync for OperationLog
impl Unpin for OperationLog
impl UnwindSafe for OperationLog
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