Trait ckb_rocksdb::ops::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§
sourcefn open_default<P: AsRef<Path>>(path: P) -> Result<Self, Error>
fn open_default<P: AsRef<Path>>(path: P) -> Result<Self, Error>
Open a database with default options.
sourcefn open<P: AsRef<Path>>(opts: &Options, path: P) -> Result<Self, Error>
fn open<P: AsRef<Path>>(opts: &Options, path: P) -> Result<Self, Error>
Open the database with the specified options.
fn open_with_descriptor<P: AsRef<Path>>( opts: &Options, path: P, descriptor: Self::Descriptor ) -> Result<Self, Error>
Object Safety§
This trait is not object safe.