pub struct ReDBAdapter(/* private fields */);
Implementations§
Source§impl ReDBAdapter
impl ReDBAdapter
pub fn get_inner(&self) -> &StorageAdapter<Database>
pub fn get_initialized_inner(&self) -> Result<&StorageAdapter<Database>, Error>
pub fn get_mut_inner(&mut self) -> &mut StorageAdapter<Database>
pub fn get_mut_initialized_inner( &mut self, ) -> Result<&mut StorageAdapter<Database>, Error>
pub fn new(path: &str) -> Result<ReDBAdapter, Error>
Trait Implementations§
Source§impl DatastoreAdapter for ReDBAdapter
impl DatastoreAdapter for ReDBAdapter
type Transaction = DBTransaction<Database, WriteTransaction<'static>>
fn default() -> Self
fn spawn(&self) -> Self
fn path(&self) -> &str
fn transaction<'life0, 'async_trait>(
&'life0 self,
w: bool,
) -> Pin<Box<dyn Future<Output = Result<Self::Transaction, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for ReDBAdapter
impl RefUnwindSafe for ReDBAdapter
impl Send for ReDBAdapter
impl Sync for ReDBAdapter
impl Unpin for ReDBAdapter
impl UnwindSafe for ReDBAdapter
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