pub struct AcquisitionOptions {
pub source_size: u64,
pub bytes_per_sector: u32,
pub sectors_per_chunk: u32,
pub chunks_per_segment: u32,
pub compression: WriteCompression,
pub metadata: EwfMetadata,
}Expand description
Configuration for a new, single-destination physical E01 acquisition. The source size must be known, nonzero, and a multiple of the sector size.
Fields§
§source_size: u64Exact source size. Acquisition never pads or silently truncates input.
bytes_per_sector: u32Bytes per sector; defaults to 512.
sectors_per_chunk: u32Sectors per chunk; defaults to 64. Chunks may not exceed 16 MiB.
chunks_per_segment: u32Maximum chunks per sealed segment, from 1 through 16,375. Defaults to 16,375 (about 512 MiB of raw data at default geometry).
compression: WriteCompressionRaw or zlib compression. BZip2 is not supported by this EWF1 API.
metadata: EwfMetadataAcquisition metadata, fixed at creation and checked on resume.
Implementations§
Trait Implementations§
Source§impl Clone for AcquisitionOptions
impl Clone for AcquisitionOptions
Source§impl Debug for AcquisitionOptions
impl Debug for AcquisitionOptions
impl Eq for AcquisitionOptions
Source§impl PartialEq for AcquisitionOptions
impl PartialEq for AcquisitionOptions
impl StructuralPartialEq for AcquisitionOptions
Auto Trait Implementations§
impl Freeze for AcquisitionOptions
impl RefUnwindSafe for AcquisitionOptions
impl Send for AcquisitionOptions
impl Sync for AcquisitionOptions
impl Unpin for AcquisitionOptions
impl UnsafeUnpin for AcquisitionOptions
impl UnwindSafe for AcquisitionOptions
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