pub struct OpenOptions {
pub hint: AccessHint,
pub max_pages: usize,
pub page_size: usize,
pub coalesce_gap_pages: usize,
pub prefetch_depth: usize,
}Expand description
Open-time prefetch configuration.
Fields§
§hint: AccessHint§max_pages: usize§page_size: usize§coalesce_gap_pages: usize§prefetch_depth: usizeImplementations§
Source§impl OpenOptions
impl OpenOptions
pub fn new() -> Self
pub fn hint(self, hint: AccessHint) -> Self
pub fn max_pages(self, max_pages: usize) -> Self
pub fn page_size(self, page_size: usize) -> Self
pub fn coalesce_gap_pages(self, gap: usize) -> Self
pub fn prefetch_depth(self, depth: usize) -> Self
pub fn validate(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for OpenOptions
impl Clone for OpenOptions
Source§fn clone(&self) -> OpenOptions
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenOptions
impl Debug 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
Mutably borrows from an owned value. Read more