ckb_rocksdb::ops

Trait Open

Source
pub trait Open: OpenRaw {
    // Provided methods
    fn open_default<P: AsRef<Path>>(path: P) -> Result<Self, Error> { ... }
    fn open<P: AsRef<Path>>(opts: &Options, path: P) -> Result<Self, Error> { ... }
    fn open_with_descriptor<P: AsRef<Path>>(
        opts: &Options,
        path: P,
        descriptor: Self::Descriptor,
    ) -> Result<Self, Error> { ... }
}

Provided Methods§

Source

fn open_default<P: AsRef<Path>>(path: P) -> Result<Self, Error>

Open a database with default options.

Source

fn open<P: AsRef<Path>>(opts: &Options, path: P) -> Result<Self, Error>

Open the database with the specified options.

Source

fn open_with_descriptor<P: AsRef<Path>>( opts: &Options, path: P, descriptor: Self::Descriptor, ) -> Result<Self, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§