#[non_exhaustive]pub struct ExportReport {
pub regions: usize,
pub bytes: u64,
pub region: Option<String>,
pub offset: u64,
pub writable: bool,
pub complete: bool,
pub facts: VolumeFacts,
}Expand description
Export through a caller’s sink (Store::export, Store::export_with):
its options, the header and each region’s info a sink is told, the
sink’s trait and errors, and the report.
How far an export got.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.regions: usizeRegions exported: each counted once its end_region returned Ok.
bytes: u64Bytes the sink’s data accepted.
region: Option<String>The region being exported when the export stopped (None once
every region ended, or before the first).
offset: u64The offset in that region’s stream the sink accepted bytes up to.
writable: boolWhether the store was open for writing.
complete: boolEvery region ended and the sink’s finish returned Ok.
facts: VolumeFactsThe volume’s facts (empty if the plan refused).
Trait Implementations§
Source§impl Clone for ExportReport
impl Clone for ExportReport
Source§fn clone(&self) -> ExportReport
fn clone(&self) -> ExportReport
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 ExportReport
impl Debug for ExportReport
Source§impl Default for ExportReport
impl Default for ExportReport
Source§fn default() -> ExportReport
fn default() -> ExportReport
Returns the “default value” for a type. Read more
impl Eq for ExportReport
Source§impl PartialEq for ExportReport
impl PartialEq for ExportReport
impl StructuralPartialEq for ExportReport
Auto Trait Implementations§
impl Forget for ExportReport
impl Freeze for ExportReport
impl Move for ExportReport
impl RefUnwindSafe for ExportReport
impl Send for ExportReport
impl Sync for ExportReport
impl Unpin for ExportReport
impl UnsafeUnpin for ExportReport
impl UnwindSafe for ExportReport
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