pub struct StorageFactory { /* private fields */ }Implementations§
Source§impl StorageFactory
impl StorageFactory
pub fn memory() -> StorageFactory
Sourcepub fn custom(provider: Rc<dyn StorageProvider>) -> StorageFactory
pub fn custom(provider: Rc<dyn StorageProvider>) -> StorageFactory
Build a factory from a custom StorageProvider (e.g. rindle-sqlite’s
DatabaseStorage). Each alloc_storage vends one namespaced store.
pub fn create_storage(&self) -> Box<dyn Storage>
Trait Implementations§
Source§impl Default for StorageFactory
impl Default for StorageFactory
Source§fn default() -> StorageFactory
fn default() -> StorageFactory
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StorageFactory
impl !RefUnwindSafe for StorageFactory
impl !Send for StorageFactory
impl !Sync for StorageFactory
impl Unpin for StorageFactory
impl UnsafeUnpin for StorageFactory
impl !UnwindSafe for StorageFactory
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