pub trait StorageBackend: Send + Sync {
// Required method
fn create_stores<'life0, 'async_trait>(
&'life0 self,
network: Network,
identity: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<Arc<ResolvedStores>, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
A factory for a tenant’s storage.
A single backend may back many SDK instances; each
create_stores call yields the store set scoped to
one tenant identity (a serialized public key). network lets file-based
backends segregate tenants by network; database backends ignore it.