pub struct RequestLedgerStore { /* private fields */ }Implementations§
Source§impl RequestLedgerStore
impl RequestLedgerStore
pub fn new(path: impl Into<PathBuf>) -> Self
pub fn from_path(path: impl AsRef<Path>) -> Self
pub fn path(&self) -> &Path
pub fn exists(&self) -> bool
pub fn read_lines(&self) -> Result<Vec<RequestLogLine>>
pub fn tail_lines(&self, limit: usize) -> Result<Vec<RequestLogLine>>
pub fn tail_finished_requests( &self, limit: usize, ) -> Result<Vec<FinishedRequest>>
pub fn find_lines( &self, filters: &RequestLogFilters, limit: usize, ) -> Result<Vec<RequestLogLine>>
pub fn find_finished_requests( &self, filters: &RequestLogFilters, limit: usize, ) -> Result<Vec<FinishedRequest>>
pub fn summarize( &self, group: RequestUsageSummaryGroup, filters: &RequestLogFilters, limit: usize, ) -> Result<Vec<RequestUsageSummaryRow>>
Trait Implementations§
Source§impl Clone for RequestLedgerStore
impl Clone for RequestLedgerStore
Source§fn clone(&self) -> RequestLedgerStore
fn clone(&self) -> RequestLedgerStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestLedgerStore
impl Debug for RequestLedgerStore
Source§impl Default for RequestLedgerStore
impl Default for RequestLedgerStore
Source§impl PartialEq for RequestLedgerStore
impl PartialEq for RequestLedgerStore
Source§fn eq(&self, other: &RequestLedgerStore) -> bool
fn eq(&self, other: &RequestLedgerStore) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RequestLedgerStore
impl StructuralPartialEq for RequestLedgerStore
Auto Trait Implementations§
impl Freeze for RequestLedgerStore
impl RefUnwindSafe for RequestLedgerStore
impl Send for RequestLedgerStore
impl Sync for RequestLedgerStore
impl Unpin for RequestLedgerStore
impl UnsafeUnpin for RequestLedgerStore
impl UnwindSafe for RequestLedgerStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.