pub struct DatasetAccessOptions { /* private fields */ }Expand description
Dataset-access options applied when opening a single dataset.
This is the hdf5-pure analogue of an HDF5 Dataset Access Property List
(DAPL). Its chunk cache corresponds to H5Pset_chunk_cache: it overrides,
for this one dataset, the file-wide chunk-cache default configured with
FileAccessOptions::with_chunk_cache (the H5Pset_cache analogue). When
left unset, the dataset inherits that file-wide default — matching the DAPL
default sentinels (H5D_CHUNK_CACHE_*_DEFAULT), which also mean “use the
file’s setting”.
ChunkCacheConfig maps H5Pset_chunk_cache’s rdcc_nslots and
rdcc_nbytes; its rdcc_w0 preemption policy is not modeled, because this
read cache uses strict LRU eviction (as noted on
ChunkCacheConfig::from_h5p_cache).
Pass it to File::dataset_with_options or Group::dataset_with_options.
Implementations§
Source§impl DatasetAccessOptions
impl DatasetAccessOptions
Sourcepub const fn with_chunk_cache(self, chunk_cache: ChunkCacheConfig) -> Self
pub const fn with_chunk_cache(self, chunk_cache: ChunkCacheConfig) -> Self
Override the raw chunk cache for this one dataset, ignoring the file-wide
default. This is the H5Pset_chunk_cache analogue.
Sourcepub const fn chunk_cache(&self) -> Option<ChunkCacheConfig>
pub const fn chunk_cache(&self) -> Option<ChunkCacheConfig>
Return the chunk-cache override, or None when the dataset inherits the
file-wide default.
Trait Implementations§
Source§impl Clone for DatasetAccessOptions
impl Clone for DatasetAccessOptions
Source§fn clone(&self) -> DatasetAccessOptions
fn clone(&self) -> DatasetAccessOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DatasetAccessOptions
Source§impl Debug for DatasetAccessOptions
impl Debug for DatasetAccessOptions
Source§impl Default for DatasetAccessOptions
impl Default for DatasetAccessOptions
Source§fn default() -> DatasetAccessOptions
fn default() -> DatasetAccessOptions
impl Eq for DatasetAccessOptions
Source§impl PartialEq for DatasetAccessOptions
impl PartialEq for DatasetAccessOptions
Source§fn eq(&self, other: &DatasetAccessOptions) -> bool
fn eq(&self, other: &DatasetAccessOptions) -> bool
self and other values to be equal, and is used by ==.