pub struct DiskCompactionResult {
pub dry_run: bool,
pub input_layers: usize,
pub selected_layers: usize,
pub output_layers: usize,
pub materialized_bytes: u64,
pub total_us: u64,
pub pause_us: u64,
pub disks: Vec<DiskCompactionDiskResult>,
}Expand description
Aggregate outcome or dry-run projection of explicit disk compaction.
Fields§
§dry_run: boolWhether only selection was performed.
input_layers: usizeSum of physical layers before compaction, including each writable head.
selected_layers: usizeSum of selected oldest sealed layers, including each base, excluding writable heads.
output_layers: usizeSum of physical layers after compaction, including each writable head.
materialized_bytes: u64Guest bytes materialized; not a disk-space saving estimate.
total_us: u64Total operation duration in microseconds.
pause_us: u64Measured VM pause through resume, zero for stopped sources and dry runs.
disks: Vec<DiskCompactionDiskResult>Individual selected disks, including unchanged chains with fewer than two sealed layers.
Trait Implementations§
Source§impl Clone for DiskCompactionResult
impl Clone for DiskCompactionResult
Source§fn clone(&self) -> DiskCompactionResult
fn clone(&self) -> DiskCompactionResult
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 DiskCompactionResult
impl Debug for DiskCompactionResult
Source§impl Default for DiskCompactionResult
impl Default for DiskCompactionResult
Source§fn default() -> DiskCompactionResult
fn default() -> DiskCompactionResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DiskCompactionResult
impl<'de> Deserialize<'de> for DiskCompactionResult
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
Auto Trait Implementations§
impl Freeze for DiskCompactionResult
impl RefUnwindSafe for DiskCompactionResult
impl Send for DiskCompactionResult
impl Sync for DiskCompactionResult
impl Unpin for DiskCompactionResult
impl UnsafeUnpin for DiskCompactionResult
impl UnwindSafe for DiskCompactionResult
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