[][src]Struct ckb_store::ChainDB

pub struct ChainDB { /* fields omitted */ }

TODO(doc): @quake

Implementations

impl ChainDB[src]

pub fn new(db: RocksDB, config: StoreConfig) -> Self[src]

TODO(doc): @quake

pub fn db(&self) -> &RocksDB[src]

TODO(doc): @quake

pub fn into_inner(self) -> RocksDB[src]

TODO(doc): @quake

pub fn put_chain_spec_hash(&self, hash: &Byte32) -> Result<(), Error>[src]

Store the chain spec hash

pub fn get_chain_spec_hash(&self) -> Option<Byte32>[src]

Return the chain spec hash

pub fn begin_transaction(&self) -> StoreTransaction[src]

TODO(doc): @quake

pub fn get_snapshot(&self) -> StoreSnapshot[src]

TODO(doc): @quake

pub fn new_write_batch(&self) -> StoreWriteBatch[src]

TODO(doc): @quake

pub fn write(&self, write_batch: &StoreWriteBatch) -> Result<(), Error>[src]

TODO(doc): @quake

pub fn init(&self, consensus: &Consensus) -> Result<(), Error>[src]

TODO(doc): @quake

Trait Implementations

impl<'a> ChainStore<'a> for ChainDB[src]

type Vector = DBPinnableSlice<'a>

TODO(doc): @quake

impl Clone for ChainDB[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any

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

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

impl<T> Erased for T

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

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

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>,