pub enum Pass {
Detailed(PassRecord),
Summary {
at: DateTime<Utc>,
bytes_freed: u64,
dirs_removed: usize,
repos_touched: usize,
dirs: Option<Vec<PrunedDir>>,
},
}Expand description
One pass as devp history sees it, from whichever source knows about it.
The two variants are not a design choice so much as an admission: this log starts at
constants::PRUNE_LOG_STARTS_AT, and every pass a machine ran before that upgrade
exists only as the registry’s four numbers. Showing those as a gap would read as data
loss, and leaving them out entirely would make devp history disagree with the pass
count devp stats prints two lines above it.
Variants§
Detailed(PassRecord)
A pass this log recorded in full.
Summary
A pass known only from the registry’s summary.
Implementations§
Source§impl Pass
impl Pass
pub fn at(&self) -> DateTime<Utc>
pub fn bytes_freed(&self) -> u64
pub fn dirs_removed(&self) -> usize
pub fn repos_touched(&self) -> usize
Sourcepub fn trigger(&self) -> Option<Trigger>
pub fn trigger(&self) -> Option<Trigger>
What started the pass, where that is known.
None for a pass recovered from the registry summary: the summary has never
carried a trigger, so a machine that pruned before 1.17.0 cannot say afterwards
which of those passes it typed and which the scheduler ran.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pass
impl RefUnwindSafe for Pass
impl Send for Pass
impl Sync for Pass
impl Unpin for Pass
impl UnsafeUnpin for Pass
impl UnwindSafe for Pass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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