Struct spacetimedb::util::slow::SlowQueryConfig
source · pub struct SlowQueryConfig { /* private fields */ }Expand description
Configuration threshold for detecting slow queries.
Implementations§
source§impl SlowQueryConfig
impl SlowQueryConfig
sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Creates a new SlowQueryConfig with [THRESHOLD_QUERIES_MILLIS] for queries and the rest set to None.
sourcepub fn with_incremental_updates(self, duration: Duration) -> Self
pub fn with_incremental_updates(self, duration: Duration) -> Self
Sets the threshold for incremental updates.
sourcepub fn with_subscriptions(self, duration: Duration) -> Self
pub fn with_subscriptions(self, duration: Duration) -> Self
Sets the threshold for subscriptions.
sourcepub fn with_queries(self, duration: Duration) -> Self
pub fn with_queries(self, duration: Duration) -> Self
Sets the threshold for general queries.
Trait Implementations§
source§impl Clone for SlowQueryConfig
impl Clone for SlowQueryConfig
source§fn clone(&self) -> SlowQueryConfig
fn clone(&self) -> SlowQueryConfig
Returns a copy of the value. Read more
1.0.0 · 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 SlowQueryConfig
impl Debug for SlowQueryConfig
source§impl Default for SlowQueryConfig
impl Default for SlowQueryConfig
source§fn default() -> SlowQueryConfig
fn default() -> SlowQueryConfig
Returns the “default value” for a type. Read more
impl Copy for SlowQueryConfig
Auto Trait Implementations§
impl Freeze for SlowQueryConfig
impl RefUnwindSafe for SlowQueryConfig
impl Send for SlowQueryConfig
impl Sync for SlowQueryConfig
impl Unpin for SlowQueryConfig
impl UnwindSafe for SlowQueryConfig
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