pub struct FileAccessOptions { /* private fields */ }Expand description
File-access options applied when opening an HDF5 file.
This is the hdf5-pure analogue of the HDF5 file access property list
settings relevant to read-time memory usage. The metadata cache only affects
streaming opens; in-memory opens already have the whole file in one buffer.
The chunk cache is the file-wide default corresponding to HDF5
H5Pset_cache’s raw-data chunk-cache settings and applies to datasets
opened from either backend.
Implementations§
Source§impl FileAccessOptions
impl FileAccessOptions
Sourcepub const fn with_metadata_cache(
self,
metadata_cache: MetadataCacheConfig,
) -> Self
pub const fn with_metadata_cache( self, metadata_cache: MetadataCacheConfig, ) -> Self
Configure the bounded streaming metadata cache.
Sourcepub const fn with_chunk_cache(self, chunk_cache: ChunkCacheConfig) -> Self
pub const fn with_chunk_cache(self, chunk_cache: ChunkCacheConfig) -> Self
Configure the per-dataset raw chunk cache used by datasets opened from
this file. This is the H5Pset_cache-style file-wide default.
Sourcepub const fn metadata_cache(&self) -> MetadataCacheConfig
pub const fn metadata_cache(&self) -> MetadataCacheConfig
Return the configured streaming metadata cache.
Sourcepub const fn chunk_cache(&self) -> ChunkCacheConfig
pub const fn chunk_cache(&self) -> ChunkCacheConfig
Return the configured per-dataset chunk cache.
Trait Implementations§
Source§impl Clone for FileAccessOptions
impl Clone for FileAccessOptions
Source§fn clone(&self) -> FileAccessOptions
fn clone(&self) -> FileAccessOptions
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 moreimpl Copy for FileAccessOptions
Source§impl Debug for FileAccessOptions
impl Debug for FileAccessOptions
Source§impl Default for FileAccessOptions
impl Default for FileAccessOptions
Source§fn default() -> FileAccessOptions
fn default() -> FileAccessOptions
Returns the “default value” for a type. Read more
impl Eq for FileAccessOptions
Source§impl PartialEq for FileAccessOptions
impl PartialEq for FileAccessOptions
Source§fn eq(&self, other: &FileAccessOptions) -> bool
fn eq(&self, other: &FileAccessOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FileAccessOptions
Auto Trait Implementations§
impl Freeze for FileAccessOptions
impl RefUnwindSafe for FileAccessOptions
impl Send for FileAccessOptions
impl Sync for FileAccessOptions
impl Unpin for FileAccessOptions
impl UnsafeUnpin for FileAccessOptions
impl UnwindSafe for FileAccessOptions
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