pub struct H5FileOptions { /* private fields */ }Expand description
Builder controlling how an H5File is opened.
The default policy follows the HDF5 C library: an exclusive lock is
acquired for write-mode opens and a shared lock for read-mode opens,
honoring the HDF5_USE_FILE_LOCKING environment variable. Calling
Self::locking overrides the env-var value.
Implementations§
Source§impl H5FileOptions
impl H5FileOptions
Sourcepub fn locking(self, policy: FileLocking) -> Self
pub fn locking(self, policy: FileLocking) -> Self
Override the locking policy. Bypasses the HDF5_USE_FILE_LOCKING
environment variable for the resulting open call.
Sourcepub fn no_locking(self) -> Self
pub fn no_locking(self) -> Self
Disable OS-level file locking entirely (equivalent to
HDF5_USE_FILE_LOCKING=FALSE).
Sourcepub fn best_effort_locking(self) -> Self
pub fn best_effort_locking(self) -> Self
Try to acquire the lock but do not fail if the filesystem rejects it
(equivalent to HDF5_USE_FILE_LOCKING=BEST_EFFORT).
Sourcepub fn create<P: AsRef<Path>>(self, path: P) -> Result<H5File>
pub fn create<P: AsRef<Path>>(self, path: P) -> Result<H5File>
Create a new HDF5 file at path with the configured options.
Trait Implementations§
Source§impl Clone for H5FileOptions
impl Clone for H5FileOptions
Source§fn clone(&self) -> H5FileOptions
fn clone(&self) -> H5FileOptions
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 H5FileOptions
impl Debug for H5FileOptions
Source§impl Default for H5FileOptions
impl Default for H5FileOptions
Source§fn default() -> H5FileOptions
fn default() -> H5FileOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for H5FileOptions
impl RefUnwindSafe for H5FileOptions
impl Send for H5FileOptions
impl Sync for H5FileOptions
impl Unpin for H5FileOptions
impl UnsafeUnpin for H5FileOptions
impl UnwindSafe for H5FileOptions
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