Struct sc_client_db::Backend[][src]

pub struct Backend<Block: BlockT> { /* fields omitted */ }

Disk backend.

Disk backend keeps data in a key-value store. In archive mode, trie nodes are kept from all blocks. Otherwise, trie nodes are kept only from some recent blocks.


impl<Block: BlockT> Backend<Block>[src]

pub fn new(
    config: DatabaseSettings,
    canonicalization_delay: u64
) -> ClientResult<Self>

Create a new instance of database backend.

The pruning window is how old a block must be before the state is pruned.

pub fn new_test(keep_blocks: u32, canonicalization_delay: u64) -> Self[src]

Create new memory-backed client backend for tests.

Trait Implementations

impl<Block> AuxStore for Backend<Block> where
    Block: BlockT

impl<Block: BlockT> Backend<Block> for Backend<Block>[src]

type BlockImportOperation = BlockImportOperation<Block>

Associated block insertion operation type.

type Blockchain = BlockchainDb<Block>

Associated blockchain backend type.

type State = SyncingCachingState<RefTrackingState<Block>, Block>

Associated state backend type.

type OffchainStorage = LocalStorage

Offchain workers local storage.

impl<Block: BlockT> LocalBackend<Block> for Backend<Block>[src]

Auto Trait Implementations

impl<Block> !RefUnwindSafe for Backend<Block>

impl<Block> Send for Backend<Block>

impl<Block> Sync for Backend<Block>

impl<Block> Unpin for Backend<Block> where
    <Block as Block>::Hash: Unpin,
    <<Block as Block>::Header as Header>::Number: Unpin

impl<Block> !UnwindSafe for Backend<Block>

Blanket Implementations

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

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

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

impl<T> CheckedConversion for T[src]

impl<T> Erased for T

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion 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<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

impl<T, S> UniqueSaturatedInto<T> for S where
    T: Bounded,
    S: TryInto<T>, 

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

impl<T> WithSubscriber for T[src]