pub struct FidlStorageFactory { /* private fields */ }
Expand description
Factory that vends out storage.
Implementations§
Source§impl FidlStorageFactory
impl FidlStorageFactory
Sourcepub fn new(migration_id: u64, storage_dir: DirectoryProxy) -> FidlStorageFactory
pub fn new(migration_id: u64, storage_dir: DirectoryProxy) -> FidlStorageFactory
Construct a new instance of FidlStorageFactory
.
Trait Implementations§
Source§impl StorageFactory for FidlStorageFactory
impl StorageFactory for FidlStorageFactory
Source§type Storage = FidlStorage
type Storage = FidlStorage
The storage type used to manage persisted data.
Source§async fn initialize<T>(&self) -> Result<(), Error>where
T: StorageAccess<Storage = FidlStorage>,
async fn initialize<T>(&self) -> Result<(), Error>where
T: StorageAccess<Storage = FidlStorage>,
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<FidlStorage>
async fn get_store(&self) -> Rc<FidlStorage>
Retrieve the store singleton instance.
Auto Trait Implementations§
impl !Freeze for FidlStorageFactory
impl !RefUnwindSafe for FidlStorageFactory
impl !Send for FidlStorageFactory
impl !Sync for FidlStorageFactory
impl Unpin for FidlStorageFactory
impl !UnwindSafe for FidlStorageFactory
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