pub struct PruneRunSummary {
pub at: DateTime<Utc>,
pub bytes_freed: u64,
pub dirs_removed: usize,
pub repos_touched: usize,
}Expand description
A one-line summary of a completed prune pass, for devp stats.
Deliberately not a second copy of LastPrune. That one exists so
devp restore --last-run can put files back, so it carries the full directory list
and only ever describes the most recent pass. This one is a trend line — four numbers
per pass, bounded by constants::PRUNE_HISTORY_LIMIT — and could not restore
anything if it wanted to.
Fields§
§at: DateTime<Utc>When the pass ran.
bytes_freed: u64Bytes reclaimed by the pass.
dirs_removed: usizeHow many directories it removed.
repos_touched: usizeHow many distinct repositories it touched.
Trait Implementations§
Source§impl Clone for PruneRunSummary
impl Clone for PruneRunSummary
Source§fn clone(&self) -> PruneRunSummary
fn clone(&self) -> PruneRunSummary
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 PruneRunSummary
impl Debug for PruneRunSummary
Source§impl<'de> Deserialize<'de> for PruneRunSummary
impl<'de> Deserialize<'de> for PruneRunSummary
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
impl Eq for PruneRunSummary
Source§impl PartialEq for PruneRunSummary
impl PartialEq for PruneRunSummary
Source§impl Serialize for PruneRunSummary
impl Serialize for PruneRunSummary
impl StructuralPartialEq for PruneRunSummary
Auto Trait Implementations§
impl Freeze for PruneRunSummary
impl RefUnwindSafe for PruneRunSummary
impl Send for PruneRunSummary
impl Sync for PruneRunSummary
impl Unpin for PruneRunSummary
impl UnsafeUnpin for PruneRunSummary
impl UnwindSafe for PruneRunSummary
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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