Skip to main content

OpenOptions

Struct OpenOptions 

Source
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

Source

pub fn strictness(&self) -> OpenStrictness

Returns the structural validation policy.

Source

pub fn with_strictness(self, strictness: OpenStrictness) -> Self

Sets the structural validation policy.

Source

pub fn chunk_cache_capacity(&self) -> ChunkCacheCapacity

Returns the decoded-chunk cache capacity policy.

Source

pub fn with_chunk_cache_size(self, chunk_count: usize) -> Self

Configures the decoded-chunk cache by entry count.

Source

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.

Source

pub fn table_entry_cache_size_bytes(&self) -> usize

Returns the table-entry page-cache byte limit.

Source

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.

Source

pub fn reader_statistics_enabled(&self) -> bool

Returns whether cumulative reader statistics are collected.

Source

pub fn with_reader_statistics(self, enabled: bool) -> Self

Enables or disables cumulative reader statistics collection.

Source

pub fn read_zero_chunk_on_error(&self) -> bool

Returns whether malformed chunks are recovered as zero-filled data.

Source

pub fn with_read_zero_chunk_on_error(self, enabled: bool) -> Self

Enables or disables malformed-chunk recovery as zero-filled data.

Source

pub fn header_codepage(&self) -> HeaderCodepage

Returns the EWF1 header codepage.

Source

pub fn with_header_codepage(self, codepage: HeaderCodepage) -> Self

Sets the EWF1 header codepage.

Source

pub fn header_values_date_format(&self) -> HeaderDateFormat

Returns the header-value date format.

Source

pub fn with_header_values_date_format(self, format: HeaderDateFormat) -> Self

Sets the header-value date format.

Source

pub fn maximum_open_handles(&self) -> Option<usize>

Returns the maximum number of simultaneously open segment handles.

Source

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

Source§

fn clone(&self) -> OpenOptions

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for OpenOptions

Source§

impl Debug for OpenOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for OpenOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for OpenOptions

Source§

impl PartialEq for OpenOptions

Source§

fn eq(&self, other: &OpenOptions) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for OpenOptions

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.