pub struct SlowQueryReader { /* private fields */ }Expand description
Reader for slow query log files
Implementations§
Source§impl SlowQueryReader
impl SlowQueryReader
Sourcepub fn read_all(&self) -> Result<Vec<SlowQueryEntry>>
pub fn read_all(&self) -> Result<Vec<SlowQueryEntry>>
Read all entries from file
Sourcepub fn read_range(
&self,
start_nanos: u64,
end_nanos: u64,
) -> Result<Vec<SlowQueryEntry>>
pub fn read_range( &self, start_nanos: u64, end_nanos: u64, ) -> Result<Vec<SlowQueryEntry>>
Read entries within time range
Sourcepub fn read_slower_than(
&self,
threshold: Duration,
) -> Result<Vec<SlowQueryEntry>>
pub fn read_slower_than( &self, threshold: Duration, ) -> Result<Vec<SlowQueryEntry>>
Read entries slower than threshold
Auto Trait Implementations§
impl Freeze for SlowQueryReader
impl RefUnwindSafe for SlowQueryReader
impl Send for SlowQueryReader
impl Sync for SlowQueryReader
impl Unpin for SlowQueryReader
impl UnsafeUnpin for SlowQueryReader
impl UnwindSafe for SlowQueryReader
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more