[][src]Struct ckb_store::ChainDB

pub struct ChainDB { /* fields omitted */ }

Implementations

impl ChainDB[src]

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

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

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

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

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

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

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

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

Trait Implementations

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

type Vector = DBPinnableSlice<'a>

impl Clone for ChainDB[src]

Auto Trait Implementations

impl !RefUnwindSafe for ChainDB

impl Send for ChainDB

impl Sync for ChainDB

impl Unpin for ChainDB

impl !UnwindSafe for ChainDB

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> Same<T> for T

type Output = T

Should always be Self

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

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