pub trait StoreOwner: Send + Sync {
// Provided method
fn force_lock<'life0, 'async_trait>(
self: Arc<Self>,
_store: &'life0 ObjectStore,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}
Provided Methods§
Sourcefn force_lock<'life0, 'async_trait>(
self: Arc<Self>,
_store: &'life0 ObjectStore,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn force_lock<'life0, 'async_trait>(
self: Arc<Self>,
_store: &'life0 ObjectStore,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Forcibly lock the store. This exists to give the StoreOwner an opportunity to clean up tasks which might access the store before locking it, because ObjectStore::unlock can only be called when the store is not in use.