pub struct UsageSnapshot {
pub elapsed: Duration,
pub bytes_read: u64,
pub bytes_written: u64,
pub keys_values_fetched: u64,
pub call_get: u64,
pub call_get_range: u64,
pub call_set: u64,
pub call_clear: u64,
pub call_clear_range: u64,
pub call_atomic_op: u64,
}Expand description
A copy of the counters of a single transaction attempt, taken by
AttemptUsage::snapshot or
Transaction::attempt_usage.
Every byte count is a client-side estimate, see the module documentation.
Fields§
§elapsed: DurationTime elapsed since the attempt started.
bytes_read: u64Bytes read: for each resolved read, the key(s) requested plus the key-values returned.
bytes_written: u64Bytes written: keys, values and mutation parameters handed to the
client. For clear_range only the two boundary keys are counted, not
the volume of data the range deletes.
keys_values_fetched: u64Number of key-values returned by resolved reads.
call_get: u64Number of get and get_key calls resolved.
call_get_range: u64Number of get_range batches resolved. A single get_ranges stream
counts once per underlying FoundationDB batch, not once per stream.
call_set: u64Number of set calls.
call_clear: u64Number of clear calls.
call_clear_range: u64Number of clear_range calls.
call_atomic_op: u64Number of atomic_op calls.
Trait Implementations§
Source§impl Clone for UsageSnapshot
impl Clone for UsageSnapshot
Source§fn clone(&self) -> UsageSnapshot
fn clone(&self) -> UsageSnapshot
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more