pub struct BlockDBOptions { /* private fields */ }Expand description
chunk_size: Defines the size (in bytes) of a single chunk
within a DataBlock. This cannot be changed after the
BlockDB is opened for the first time.
(Default: 4,096)
max_file_size: Sets the soft maximum size (in bytes) of a DataFile.
“Soft” means that it may be exceeded once per file (e.g., for large writes).
This can be changed after initialization, but it will not retroactively
affect the size of existing DataFiles.
(Default: 4,096 * 1,000,000)
Implementations§
Source§impl BlockDBOptions
impl BlockDBOptions
Sourcepub fn chunk_size(&self) -> usize
pub fn chunk_size(&self) -> usize
Get chunk_size as usize
Sourcepub fn max_file_size(&self) -> usize
pub fn max_file_size(&self) -> usize
Get max_file_size as usize
Trait Implementations§
Source§impl Clone for BlockDBOptions
impl Clone for BlockDBOptions
Source§fn clone(&self) -> BlockDBOptions
fn clone(&self) -> BlockDBOptions
Returns a duplicate 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 BlockDBOptions
impl Debug for BlockDBOptions
Source§impl Default for BlockDBOptions
impl Default for BlockDBOptions
Source§impl<'de> Deserialize<'de> for BlockDBOptions
impl<'de> Deserialize<'de> for BlockDBOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BlockDBOptions
impl RefUnwindSafe for BlockDBOptions
impl Send for BlockDBOptions
impl Sync for BlockDBOptions
impl Unpin for BlockDBOptions
impl UnwindSafe for BlockDBOptions
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