pub struct StashDeviceStorageFactory { /* private fields */ }
Expand description
Factory that vends out storage.
Implementations§
Source§impl StashDeviceStorageFactory
impl StashDeviceStorageFactory
Sourcepub fn new(
store: StoreProxy,
inspect_handle: Rc<Mutex<StashInspectLogger>>,
) -> StashDeviceStorageFactory
pub fn new( store: StoreProxy, inspect_handle: Rc<Mutex<StashInspectLogger>>, ) -> StashDeviceStorageFactory
Construct a new instance of StashDeviceStorageFactory
.
Trait Implementations§
Source§impl StorageFactory for StashDeviceStorageFactory
impl StorageFactory for StashDeviceStorageFactory
Source§type Storage = DeviceStorage
type Storage = DeviceStorage
The storage type used to manage persisted data.
Source§async fn initialize<T>(&self) -> Result<(), Error>where
T: StorageAccess<Storage = DeviceStorage>,
async fn initialize<T>(&self) -> Result<(), Error>where
T: StorageAccess<Storage = DeviceStorage>,
Initialize the storage to be able to manage storage for objects of type T.
This will return an Error once
get_store
is called the first time.Source§async fn initialize_with_loader<T, L>(&self, loader: L) -> Result<(), Error>
async fn initialize_with_loader<T, L>(&self, loader: L) -> Result<(), Error>
Initialize the storage to be able to manage storage for objects of type T.
This will return an Error once
get_store
is called the first time.Source§async fn get_store(&self) -> Rc<DeviceStorage>
async fn get_store(&self) -> Rc<DeviceStorage>
Retrieve the store singleton instance.
Auto Trait Implementations§
impl !Freeze for StashDeviceStorageFactory
impl !RefUnwindSafe for StashDeviceStorageFactory
impl !Send for StashDeviceStorageFactory
impl !Sync for StashDeviceStorageFactory
impl Unpin for StashDeviceStorageFactory
impl !UnwindSafe for StashDeviceStorageFactory
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