[][src]Struct blockchain_rocksdb::RocksBackend

pub struct RocksBackend<B: Block, A: Auxiliary<B>, S> { /* fields omitted */ }

Methods

impl<B: Block, A: Auxiliary<B>, S: RocksState> RocksBackend<B, A, S> where
    B::Identifier: Encode + Decode,
    B: Encode + Decode,
    A: Encode + Decode,
    A::Key: Encode + Decode
[src]

pub fn open_or_create<P: AsRef<Path>, F>(path: P, f: F) -> Result<Self, Error> where
    F: FnOnce(Arc<DB>) -> Result<(B, S), Error>, 
[src]

pub fn new_with_genesis<P: AsRef<Path>>(
    path: P,
    block: B,
    state: S
) -> Result<Self, Error>
[src]

pub fn from_existing<P: AsRef<Path>>(path: P) -> Result<Self, Error>[src]

Trait Implementations

impl<B: Block, A: Auxiliary<B>, S> Clone for RocksBackend<B, A, S>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<B: Block, A: Auxiliary<B>, S> Store for RocksBackend<B, A, S>[src]

type Block = B

Block type

type Auxiliary = A

Auxiliary type

type State = S

State type

type Error = Error

Error type

impl<B: Block, A: Auxiliary<B>, S: RocksState> ChainQuery for RocksBackend<B, A, S> where
    B::Identifier: Encode + Decode,
    B: Encode + Decode,
    A: Encode + Decode,
    A::Key: Encode + Decode
[src]

impl<B: Block, A: Auxiliary<B>, S: RocksState> SharedCommittable for RocksBackend<B, A, S> where
    B::Identifier: Encode + Decode,
    B: Encode + Decode,
    A: Encode + Decode,
    A::Key: Encode + Decode
[src]

type Operation = Operation<Self::Block, Self::State, Self::Auxiliary>

Operation type for commit.

Auto Trait Implementations

impl<B, A, S> Send for RocksBackend<B, A, S> where
    A: Send,
    B: Send,
    S: Send,
    <B as Block>::Identifier: Send + Sync

impl<B, A, S> Sync for RocksBackend<B, A, S> where
    A: Sync,
    B: Sync,
    S: Sync,
    <B as Block>::Identifier: Send + Sync

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]