Struct pagecache::Config
[−]
[src]
pub struct Config { /* fields omitted */ }
A finalized ConfigBuilder
that can be use multiple times
to open a Tree
or Log
.
Methods
impl Config
[src]
fn file(&self) -> CacheResult<Arc<File>, ()>
[src]
Retrieve a thread-local file handle to the configured underlying storage, or create a new one if this is the first time the thread is accessing it.
Methods from Deref<Target = ConfigBuilder>
fn get_io_bufs(&self) -> usize
[src]
Get
fn io_bufs(self, to: usize) -> ConfigBuilder
[src]
Builder, set
fn get_io_buf_size(&self) -> usize
[src]
Get
fn io_buf_size(self, to: usize) -> ConfigBuilder
[src]
Builder, set
fn get_min_items_per_segment(&self) -> usize
[src]
Get
fn min_items_per_segment(self, to: usize) -> ConfigBuilder
[src]
Builder, set
fn get_blink_fanout(&self) -> usize
[src]
Get
fn blink_fanout(self, to: usize) -> ConfigBuilder
[src]
Builder, set
fn get_page_consolidation_threshold(&self) -> usize
[src]
Get
fn page_consolidation_threshold(self, to: usize) -> ConfigBuilder
[src]
Builder, set
fn get_temporary(&self) -> bool
[src]
Get
fn temporary(self, to: bool) -> ConfigBuilder
[src]
Builder, set
fn get_read_only(&self) -> bool
[src]
Get
fn read_only(self, to: bool) -> ConfigBuilder
[src]
Builder, set
fn get_cache_bits(&self) -> usize
[src]
Get
fn cache_bits(self, to: usize) -> ConfigBuilder
[src]
Builder, set
fn get_cache_capacity(&self) -> usize
[src]
Get
fn cache_capacity(self, to: usize) -> ConfigBuilder
[src]
Builder, set
fn get_use_os_cache(&self) -> bool
[src]
Get
fn use_os_cache(self, to: bool) -> ConfigBuilder
[src]
Builder, set
fn get_use_compression(&self) -> bool
[src]
Get
fn use_compression(self, to: bool) -> ConfigBuilder
[src]
Builder, set
fn get_zstd_compression_factor(&self) -> i32
[src]
Get
fn zstd_compression_factor(self, to: i32) -> ConfigBuilder
[src]
Builder, set
fn get_flush_every_ms(&self) -> Option<u64>
[src]
Get
fn flush_every_ms(self, to: Option<u64>) -> ConfigBuilder
[src]
Builder, set
fn get_snapshot_after_ops(&self) -> usize
[src]
Get
fn snapshot_after_ops(self, to: usize) -> ConfigBuilder
[src]
Builder, set
fn get_cache_fixup_threshold(&self) -> usize
[src]
Get
fn cache_fixup_threshold(self, to: usize) -> ConfigBuilder
[src]
Builder, set
fn get_segment_cleanup_threshold(&self) -> f64
[src]
Get
fn segment_cleanup_threshold(self, to: f64) -> ConfigBuilder
[src]
Builder, set
fn get_min_free_segments(&self) -> usize
[src]
Get
fn min_free_segments(self, to: usize) -> ConfigBuilder
[src]
Builder, set
fn get_zero_copy_storage(&self) -> bool
[src]
Get
fn zero_copy_storage(self, to: bool) -> ConfigBuilder
[src]
Builder, set
fn get_segment_mode(&self) -> SegmentMode
[src]
Get
fn segment_mode(self, to: SegmentMode) -> ConfigBuilder
[src]
Builder, set
fn get_snapshot_path(&self) -> Option<OsString>
[src]
Get
fn snapshot_path(self, to: Option<OsString>) -> ConfigBuilder
[src]
Builder, set
fn path<P: AsRef<Path>>(self, path: P) -> ConfigBuilder
[src]
Set the path of the database (builder).
fn get_path(&self) -> OsString
[src]
Get the path of the database
fn snapshot_prefix(&self) -> OsString
[src]
returns the current snapshot file prefix
fn get_snapshot_files(&self) -> Result<Vec<PathBuf>>
[src]
returns the snapshot file paths for this system
fn build(self) -> Config
[src]
Finalize the configuration.
Trait Implementations
impl Debug for Config
[src]
impl Send for Config
[src]
impl Sync for Config
[src]
impl Deref for Config
[src]
type Target = ConfigBuilder
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Dereferences the value.
impl Clone for Config
[src]
fn clone(&self) -> Config
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more