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
§type Storage = FidlStorage
type Storage = FidlStorage
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 = FidlStorage> + '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 = FidlStorage> + '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 = FidlStorage> + '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 = FidlStorage> + '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 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