pub struct StorageOpenOptions {
pub(crate) filename: Option<PathBuf>,
pub(crate) writable: bool,
pub(crate) direct: bool,
}
Expand description
Parameters from which a storage object can be constructed.
Fields§
§filename: Option<PathBuf>
Filename to open.
writable: bool
Whether the object should be opened as writable or read-only.
direct: bool
Whether to bypass the host page cache (if applicable).
Implementations§
Source§impl StorageOpenOptions
impl StorageOpenOptions
Sourcepub fn direct(self, direct: bool) -> Self
pub fn direct(self, direct: bool) -> Self
Whether to bypass the host page cache (if applicable).
Sourcepub fn get_filename(&self) -> Option<&Path>
pub fn get_filename(&self) -> Option<&Path>
Get the set filename (if any).
Sourcepub fn get_writable(&self) -> bool
pub fn get_writable(&self) -> bool
Return the set writable state.
Sourcepub fn get_direct(&self) -> bool
pub fn get_direct(&self) -> bool
Return the set direct state.
Trait Implementations§
Source§impl Clone for StorageOpenOptions
impl Clone for StorageOpenOptions
Source§fn clone(&self) -> StorageOpenOptions
fn clone(&self) -> StorageOpenOptions
Returns a copy of the value. Read more
1.0.0 · 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 StorageOpenOptions
impl Debug for StorageOpenOptions
Source§impl Default for StorageOpenOptions
impl Default for StorageOpenOptions
Source§fn default() -> StorageOpenOptions
fn default() -> StorageOpenOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StorageOpenOptions
impl RefUnwindSafe for StorageOpenOptions
impl Send for StorageOpenOptions
impl Sync for StorageOpenOptions
impl Unpin for StorageOpenOptions
impl UnwindSafe for StorageOpenOptions
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