pub struct Storage { /* private fields */ }
Implementations
sourceimpl Storage
impl Storage
pub fn new_sled(sled: SledStorage) -> Self
sourceimpl Storage
impl Storage
pub fn new_csv(storage: CSVStorage) -> Self
sourceimpl Storage
impl Storage
pub fn new(storage: Box<dyn FullStorage>) -> Self
pub fn get(&self) -> MutexGuard<'_, Box<dyn FullStorage>>
pub fn get_mut(&mut self) -> &mut Box<dyn FullStorage>
pub fn into_source(self) -> Connection
pub fn from_source(connection: Connection) -> Result<Self>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Storage
impl !Send for Storage
impl !Sync for Storage
impl Unpin for Storage
impl UnwindSafe for Storage
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