pub struct Database { /* private fields */ }
Implementations
sourceimpl Database
impl Database
pub fn new(database: Box<DatabaseInner>) -> Self
pub fn get(&self) -> MutexGuard<'_, Box<DatabaseInner>>
pub fn get_mut(&mut self) -> &mut Box<DatabaseInner>
pub fn into_source(self) -> Connection
pub fn from_source(connection: Connection) -> Result<Self>
sourceimpl Database
impl Database
pub fn new_sled(sled: SledDatabase) -> Self
sourceimpl Database
impl Database
pub fn new_csv(storage: CSVDatabase) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Database
impl !Send for Database
impl !Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more