pub struct CopyOptions {
pub store: StoreOptions,
pub accept_stale_pages: bool,
}Expand description
How copy_store builds its target.
Fields§
§store: StoreOptionsThe target store’s options (trust, buffers, queues…). Its block size is the source’s whatever this says, and its table holds at least the source’s regions; the container format is 2.
accept_stale_pages: boolCopy a source the open left frozen (a stale or lost table page) or
with unavailable regions or entries this version cannot read,
instead of refusing it (spec §12, “What copy_store copies”; the
way out of a store no repair can mend in place):
- every usable region, by its recorded data size;
- a usable region of a stale page in full: its whole capacity,
plus the extra extent its header lists when that overlaps no other
region’s footprint and no reserved span (a growth whose commit may
be the page’s lost one); the target’s data size covers all of it,
and its recorded data size is reported
(
CopyReport::verified_up_to): the bytes past it may never have been written, may be the newest, or (where no check can tell: a growth another damaged header never listed, an uncommitted one of a confirmed page’s region) may never have been this region’s; - every stale page reported (
CopyReport::stale_pages): its newest commit is given up, so a region it created is missing and one it released is back; - unavailable regions and unreadable entries left out, reported
(
CopyReport::omitted); a lost page’s regions are unknown, reported by page (CopyReport::lost_pages); - a possibly superseded region copied and reported
(
CopyReport::superseded): it may read another region’s bytes.
Default false: such a source is refused.
Trait Implementations§
Source§impl Clone for CopyOptions
impl Clone for CopyOptions
Source§impl Debug for CopyOptions
impl Debug for CopyOptions
Auto Trait Implementations§
impl Forget for CopyOptions
impl Freeze for CopyOptions
impl Move for CopyOptions
impl RefUnwindSafe for CopyOptions
impl Send for CopyOptions
impl Sync for CopyOptions
impl Unpin for CopyOptions
impl UnsafeUnpin for CopyOptions
impl UnwindSafe for CopyOptions
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