pub struct StatsConfig {
pub fast: bool,
pub clear: bool,
}Expand description
Specifies the attributes of a statistics retrieval operation.
Pass to Environment::get_stats or
Database::get_stats.
§Defaults
fast = false— collect all statistics, including those that require an expensive action such as a tree traversal or lock-table scan.clear = false— do not reset counters after reading them.
Fields§
§fast: boolIf true, return only values that do not require expensive actions
(e.g. skip B-tree traversal counts). Implements StatsConfig.setFast(true).
clear: boolIf true, reset all counters to zero after reading them.
Implements StatsConfig.setClear(true).
Implementations§
Source§impl StatsConfig
impl StatsConfig
Trait Implementations§
Source§impl Clone for StatsConfig
impl Clone for StatsConfig
Source§fn clone(&self) -> StatsConfig
fn clone(&self) -> StatsConfig
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 StatsConfig
impl Debug for StatsConfig
Source§impl Default for StatsConfig
impl Default for StatsConfig
Source§fn default() -> StatsConfig
fn default() -> StatsConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StatsConfig
impl RefUnwindSafe for StatsConfig
impl Send for StatsConfig
impl Sync for StatsConfig
impl Unpin for StatsConfig
impl UnsafeUnpin for StatsConfig
impl UnwindSafe for StatsConfig
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