pub struct RestoreRate {
pub samples: u32,
pub bytes: u64,
pub millis: u64,
}Expand description
One adapter’s observed restore throughput on this machine.
Totals rather than a stored average, because that is what lets a new measurement be folded in without keeping the individual samples — and the individual samples are per-repository, which is exactly the shape of data this tool has no business keeping.
Fields§
§samples: u32How many restores this average is made of.
bytes: u64Bytes those restores put back.
millis: u64Milliseconds they took.
Implementations§
Source§impl RestoreRate
impl RestoreRate
Sourcepub fn bytes_per_sec(&self) -> Option<f64>
pub fn bytes_per_sec(&self) -> Option<f64>
Bytes per second, or None when the record cannot support the division.
Trait Implementations§
Source§impl Clone for RestoreRate
impl Clone for RestoreRate
Source§fn clone(&self) -> RestoreRate
fn clone(&self) -> RestoreRate
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 RestoreRate
impl Debug for RestoreRate
Source§impl Default for RestoreRate
impl Default for RestoreRate
Source§fn default() -> RestoreRate
fn default() -> RestoreRate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RestoreRate
impl<'de> Deserialize<'de> for RestoreRate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RestoreRate
impl PartialEq for RestoreRate
Source§impl Serialize for RestoreRate
impl Serialize for RestoreRate
impl StructuralPartialEq for RestoreRate
Auto Trait Implementations§
impl Freeze for RestoreRate
impl RefUnwindSafe for RestoreRate
impl Send for RestoreRate
impl Sync for RestoreRate
impl Unpin for RestoreRate
impl UnsafeUnpin for RestoreRate
impl UnwindSafe for RestoreRate
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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