pub struct History { /* private fields */ }Implementations§
Source§impl History
impl History
pub fn new( storage: impl Storage + 'static, capacity: usize, slow_query_ms: u64, ) -> Self
pub fn disabled_collectors(self, collectors: &[String]) -> Self
pub fn max_age_hours(self, hours: u64) -> Self
pub fn only_slow_queries(self, only: bool) -> Self
pub fn next_id(&self) -> u64
pub fn store( &self, record: RequestRecord, collected: Collected, ) -> Result<RequestRecord>
pub fn find(&self, id: u64) -> Result<Option<RequestRecord>>
pub fn latest(&self) -> Result<Option<RequestRecord>>
pub fn summaries(&self, filter: &Filter) -> Result<Vec<RequestSummary>>
pub fn clear(&self) -> Result<()>
Auto Trait Implementations§
impl !Freeze for History
impl !RefUnwindSafe for History
impl !UnwindSafe for History
impl Forget for History
impl Move for History
impl Send for History
impl Sync for History
impl Unpin for History
impl UnsafeUnpin for Historywhere
*const dyn Storage is !null: UnsafeUnpin,
PhantomData<dyn Storage>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
Align8<u64>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<K> ForeignKey<K> for K
impl<K> ForeignKey<K> for K
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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