pub struct RedbQualityTelemetryReader { /* private fields */ }Expand description
Read-only query adapter for the local quality journal.
Implementations§
Source§impl RedbQualityTelemetryReader
impl RedbQualityTelemetryReader
pub fn open(data_dir: &Path) -> Result<Self, PortError>
pub fn count(&self) -> Result<u64, PortError>
pub fn query_since( &self, since_millis: u64, rpc: Option<&str>, limit: usize, ) -> Result<Vec<QualityTelemetryObservation>, PortError>
pub fn query_between( &self, since_millis: u64, until_millis: u64, rpc: Option<&str>, limit: usize, ) -> Result<Vec<QualityTelemetryObservation>, PortError>
pub fn latest( &self, limit: usize, ) -> Result<Vec<QualityTelemetryObservation>, PortError>
Trait Implementations§
Source§impl Clone for RedbQualityTelemetryReader
impl Clone for RedbQualityTelemetryReader
Source§fn clone(&self) -> RedbQualityTelemetryReader
fn clone(&self) -> RedbQualityTelemetryReader
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for RedbQualityTelemetryReader
impl !UnwindSafe for RedbQualityTelemetryReader
impl Freeze for RedbQualityTelemetryReader
impl Send for RedbQualityTelemetryReader
impl Sync for RedbQualityTelemetryReader
impl Unpin for RedbQualityTelemetryReader
impl UnsafeUnpin for RedbQualityTelemetryReader
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