pub struct AcquisitionReadOptions {
pub retries: u32,
pub unreadable_sector_policy: UnreadableSectorPolicy,
pub maximum_error_ranges: usize,
pub checkpoint_interval: Option<u64>,
}Expand description
Source-reading policy; it can be changed between calls or after resume. Previously substituted sectors and their provenance are never rewritten.
Fields§
§retries: u32Additional attempts per failed sector, from 0 through 100. Default: 2. A failed bulk read first falls back to individual sectors; bulk attempts do not consume a sector’s retry allowance.
unreadable_sector_policy: UnreadableSectorPolicyBehavior after a sector’s attempts are exhausted. Defaults to stopping.
maximum_error_ranges: usizeMaximum disjoint substituted-sector ranges retained in memory. Defaults to 65,536. Reaching the limit stops before substituting another disjoint range. Adjacent failed sectors share a range.
checkpoint_interval: Option<u64>Optional logical-byte interval for early checkpoints. Must be a positive multiple of the chunk size. Segment boundaries also checkpoint normally.
Trait Implementations§
Source§impl Clone for AcquisitionReadOptions
impl Clone for AcquisitionReadOptions
Source§impl Debug for AcquisitionReadOptions
impl Debug for AcquisitionReadOptions
Source§impl Default for AcquisitionReadOptions
impl Default for AcquisitionReadOptions
impl Eq for AcquisitionReadOptions
Source§impl PartialEq for AcquisitionReadOptions
impl PartialEq for AcquisitionReadOptions
impl StructuralPartialEq for AcquisitionReadOptions
Auto Trait Implementations§
impl Freeze for AcquisitionReadOptions
impl RefUnwindSafe for AcquisitionReadOptions
impl Send for AcquisitionReadOptions
impl Sync for AcquisitionReadOptions
impl Unpin for AcquisitionReadOptions
impl UnsafeUnpin for AcquisitionReadOptions
impl UnwindSafe for AcquisitionReadOptions
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