[][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


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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

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

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