pub struct WalReport {
pub objects: usize,
pub first: Option<u64>,
pub last: Option<u64>,
pub bytes: u64,
pub fenced: usize,
pub tail: usize,
pub gaps: Vec<(u64, u64)>,
}Expand description
A summary of the WAL objects in a namespace.
Fields§
§objects: usizeHow many WAL objects there are, fences included.
first: Option<u64>The lowest seq listed.
last: Option<u64>The highest seq listed.
bytes: u64Total stored size of the objects.
fenced: usizeHow many are fences (8 bytes), left by garbage collection.
tail: usizeHow many are past the manifest’s fold point, so a query still reads them. Without a manifest, all of them.
gaps: Vec<(u64, u64)>Runs of missing seqs as inclusive (from, to) pairs, from 1 up to the
higher of the last seq listed and the fold point.
Trait Implementations§
impl Eq for WalReport
impl StructuralPartialEq for WalReport
Auto Trait Implementations§
impl Forget for WalReport
impl Freeze for WalReport
impl Move for WalReport
impl RefUnwindSafe for WalReport
impl Send for WalReport
impl Sync for WalReport
impl Unpin for WalReport
impl UnsafeUnpin for WalReport
impl UnwindSafe for WalReport
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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