[−][src]Struct tari_storage::lmdb_store::LMDBConfig
Implementations
impl LMDBConfig
[src]
pub fn new(
init_size_bytes: usize,
grow_size_bytes: usize,
resize_threshold_bytes: usize
) -> Self
[src]
init_size_bytes: usize,
grow_size_bytes: usize,
resize_threshold_bytes: usize
) -> Self
Specify LMDB config in bytes.
pub fn new_from_mb(
init_size_mb: usize,
grow_size_mb: usize,
resize_threshold_mb: usize
) -> Self
[src]
init_size_mb: usize,
grow_size_mb: usize,
resize_threshold_mb: usize
) -> Self
Specify LMDB config in megabytes.
pub fn init_size_bytes(&self) -> usize
[src]
Get the initial size of the LMDB environment in bytes.
pub fn grow_size_bytes(&self) -> usize
[src]
Get the grow size of the LMDB environment in bytes. The LMDB environment will be resized by this amount when
resize_threshold_bytes
are left.
pub fn resize_threshold_bytes(&self) -> usize
[src]
Get the resize threshold in bytes. The LMDB environment will be resized when this much free space is left.
Trait Implementations
impl Clone for LMDBConfig
[src]
fn clone(&self) -> LMDBConfig
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LMDBConfig
[src]
impl Default for LMDBConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for LMDBConfig
[src]
impl Send for LMDBConfig
[src]
impl Sync for LMDBConfig
[src]
impl Unpin for LMDBConfig
[src]
impl UnwindSafe for LMDBConfig
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
pub fn clear(&mut self)
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
T: 'a + Clone + Send + Sync,
pub fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a, Global>
pub fn self_address_mut(&mut self) -> *mut ()
impl<T> From<T> for T
[src]
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
pub unsafe fn initialize(place: *mut T)
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
T: 'a + Clone,
pub fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a, Global>
pub fn self_address_mut(&mut self) -> *mut ()
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
pub fn borrow_replacement(ptr: &T) -> &T
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,