pub struct SequenceStats {
pub n_gets: u64,
pub n_cache_hits: u64,
pub current_value: i64,
pub cache_value: i64,
pub cache_last: i64,
pub range_min: i64,
pub range_max: i64,
pub cache_size: i32,
}Expand description
Statistics for a Sequence handle.
Fields§
§n_gets: u64Total number of successful get calls on this handle.
n_cache_hits: u64Number of get calls that were served from the in-memory cache
without touching the database.
current_value: i64The value most recently written to the database (the “stored value”).
Other handles may have already consumed values between current_value
and cache_last.
cache_value: i64The next value that will be returned from the local cache.
cache_last: i64The last value reserved in the local cache.
range_min: i64Configured minimum of the sequence range.
range_max: i64Configured maximum of the sequence range.
cache_size: i32Configured cache size for this handle.
Trait Implementations§
Source§impl Clone for SequenceStats
impl Clone for SequenceStats
Source§fn clone(&self) -> SequenceStats
fn clone(&self) -> SequenceStats
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 Freeze for SequenceStats
impl RefUnwindSafe for SequenceStats
impl Send for SequenceStats
impl Sync for SequenceStats
impl Unpin for SequenceStats
impl UnsafeUnpin for SequenceStats
impl UnwindSafe for SequenceStats
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