[][src]Struct cita_database::rocksdb::RocksDB

pub struct RocksDB {
    pub config: Config,
    pub write_opts: WriteOptions,
    pub read_opts: ReadOptions,
    // some fields omitted
}

Fields

config: Configwrite_opts: WriteOptionsread_opts: ReadOptions

Methods

impl RocksDB[src]

pub fn open_default(path: &str) -> Result<Self>[src]

Open a rocksDB with default config.

pub fn open(path: &str, config: &Config) -> Result<Self>[src]

Open rocksDB with config.

pub fn close(&mut self)[src]

pub fn restore(&mut self, new_db_path: &str) -> Result<()>[src]

Restore the database from a copy at given path.

pub fn iterator(&self, category: Option<DataCategory>) -> Option<DBIterator>[src]

Trait Implementations

impl Database for RocksDB[src]

impl Sync for RocksDB[src]

impl Send for RocksDB[src]

Auto Trait Implementations

Blanket Implementations

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]

impl<T> UnsafeAny for T where
    T: Any