[][src]Struct tari_storage::lmdb_store::LMDBConfig

pub struct LMDBConfig { /* fields omitted */ }

Implementations

impl LMDBConfig[src]

pub fn new(
    init_size_bytes: usize,
    grow_size_bytes: usize,
    resize_threshold_bytes: usize
) -> Self
[src]

Specify LMDB config in bytes.

pub fn new_from_mb(
    init_size_mb: usize,
    grow_size_mb: usize,
    resize_threshold_mb: usize
) -> Self
[src]

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]

impl Debug for LMDBConfig[src]

impl Default for LMDBConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,