[][src]Struct substrate_state_db::Constraints

pub struct Constraints {
    pub max_blocks: Option<u32>,
    pub max_mem: Option<usize>,
}

Pruning constraints. If none are specified pruning is

Fields

max_blocks: Option<u32>

Maximum blocks. Defaults to 0 when unspecified, effectively keeping only non-canonical states.

max_mem: Option<usize>

Maximum memory in the pruning overlay.

Trait Implementations

impl Eq for Constraints[src]

impl Default for Constraints[src]

impl Clone for Constraints[src]

impl PartialEq<Constraints> for Constraints[src]

impl Debug for Constraints[src]

Auto Trait Implementations

impl Send for Constraints

impl Unpin for Constraints

impl Sync for Constraints

impl UnwindSafe for Constraints

impl RefUnwindSafe for Constraints

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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