pub struct AsyncRocksBuilder { /* private fields */ }Expand description
Builder for configuring and opening an AsyncRocksDB instance.
Implementations§
Source§impl AsyncRocksBuilder
impl AsyncRocksBuilder
pub fn new() -> Self
pub fn add_column_family(self, name: &str) -> Self
pub async fn open<P: AsRef<Path>>( self, path: P, ) -> Result<AsyncRocksDB, AsyncRocksError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncRocksBuilder
impl RefUnwindSafe for AsyncRocksBuilder
impl Send for AsyncRocksBuilder
impl Sync for AsyncRocksBuilder
impl Unpin for AsyncRocksBuilder
impl UnwindSafe for AsyncRocksBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more