pub struct OpenOptions { /* private fields */ }Expand description
Options that control how an image is opened and read.
Configure values with the with_* builders and inspect them with getters.
Implementations§
Source§impl OpenOptions
impl OpenOptions
Sourcepub fn strictness(&self) -> OpenStrictness
pub fn strictness(&self) -> OpenStrictness
Returns the structural validation policy.
Sourcepub fn with_strictness(self, strictness: OpenStrictness) -> Self
pub fn with_strictness(self, strictness: OpenStrictness) -> Self
Sets the structural validation policy.
Sourcepub fn chunk_cache_capacity(&self) -> ChunkCacheCapacity
pub fn chunk_cache_capacity(&self) -> ChunkCacheCapacity
Returns the decoded-chunk cache capacity policy.
Sourcepub fn with_chunk_cache_size(self, chunk_count: usize) -> Self
pub fn with_chunk_cache_size(self, chunk_count: usize) -> Self
Configures the decoded-chunk cache by entry count.
Sourcepub fn with_chunk_cache_size_bytes(self, bytes: usize) -> Self
pub fn with_chunk_cache_size_bytes(self, bytes: usize) -> Self
Configures the decoded-chunk cache by byte target.
At least one decoded chunk is retained even when one chunk exceeds the requested byte target.
Sourcepub fn table_entry_cache_size_bytes(&self) -> usize
pub fn table_entry_cache_size_bytes(&self) -> usize
Returns the table-entry page-cache byte limit.
Sourcepub fn with_table_entry_cache_size_bytes(self, bytes: usize) -> Self
pub fn with_table_entry_cache_size_bytes(self, bytes: usize) -> Self
Sets the table-entry page-cache byte limit.
A value of zero disables retention of table-entry pages.
Sourcepub fn reader_statistics_enabled(&self) -> bool
pub fn reader_statistics_enabled(&self) -> bool
Returns whether cumulative reader statistics are collected.
Sourcepub fn with_reader_statistics(self, enabled: bool) -> Self
pub fn with_reader_statistics(self, enabled: bool) -> Self
Enables or disables cumulative reader statistics collection.
Sourcepub fn read_zero_chunk_on_error(&self) -> bool
pub fn read_zero_chunk_on_error(&self) -> bool
Returns whether malformed chunks are recovered as zero-filled data.
Sourcepub fn with_read_zero_chunk_on_error(self, enabled: bool) -> Self
pub fn with_read_zero_chunk_on_error(self, enabled: bool) -> Self
Enables or disables malformed-chunk recovery as zero-filled data.
Sourcepub fn header_codepage(&self) -> HeaderCodepage
pub fn header_codepage(&self) -> HeaderCodepage
Returns the EWF1 header codepage.
Sourcepub fn with_header_codepage(self, codepage: HeaderCodepage) -> Self
pub fn with_header_codepage(self, codepage: HeaderCodepage) -> Self
Sets the EWF1 header codepage.
Sourcepub fn header_values_date_format(&self) -> HeaderDateFormat
pub fn header_values_date_format(&self) -> HeaderDateFormat
Returns the header-value date format.
Sourcepub fn with_header_values_date_format(self, format: HeaderDateFormat) -> Self
pub fn with_header_values_date_format(self, format: HeaderDateFormat) -> Self
Sets the header-value date format.
Sourcepub fn maximum_open_handles(&self) -> Option<usize>
pub fn maximum_open_handles(&self) -> Option<usize>
Returns the maximum number of simultaneously open segment handles.
Sourcepub fn with_maximum_open_handles(self, maximum: Option<usize>) -> Self
pub fn with_maximum_open_handles(self, maximum: Option<usize>) -> Self
Sets the maximum number of simultaneously open segment handles.
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Source§fn clone(&self) -> OpenOptions
fn clone(&self) -> OpenOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OpenOptions
Source§impl Debug for OpenOptions
impl Debug for OpenOptions
Source§impl Default for OpenOptions
impl Default for OpenOptions
impl Eq for OpenOptions
Source§impl PartialEq for OpenOptions
impl PartialEq for OpenOptions
impl StructuralPartialEq for OpenOptions
Auto Trait Implementations§
impl Freeze for OpenOptions
impl RefUnwindSafe for OpenOptions
impl Send for OpenOptions
impl Sync for OpenOptions
impl Unpin for OpenOptions
impl UnsafeUnpin for OpenOptions
impl UnwindSafe for OpenOptions
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.