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: Arc<Mutex<StashInspectLogger>>,
) -> StashDeviceStorageFactory
pub fn new( store: StoreProxy, inspect_handle: Arc<Mutex<StashInspectLogger>>, ) -> StashDeviceStorageFactory
Construct a new instance of StashDeviceStorageFactory
.
Trait Implementations§
source§impl StorageFactory for StashDeviceStorageFactory
impl StorageFactory for StashDeviceStorageFactory
§type Storage = DeviceStorage
type Storage = DeviceStorage
The storage type used to manage persisted data.
source§fn initialize<'life0, 'async_trait, T>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
T: StorageAccess<Storage = DeviceStorage> + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn initialize<'life0, 'async_trait, T>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
T: StorageAccess<Storage = DeviceStorage> + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
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§fn initialize_with_loader<'life0, 'async_trait, T>(
&'life0 self,
loader: impl 'async_trait + DefaultLoader<Result = T::Data> + Send + Sync + 'static,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
T: StorageAccess<Storage = DeviceStorage> + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn initialize_with_loader<'life0, 'async_trait, T>(
&'life0 self,
loader: impl 'async_trait + DefaultLoader<Result = T::Data> + Send + Sync + 'static,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
T: StorageAccess<Storage = DeviceStorage> + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
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.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