Trait sos_protocol::SyncStorage
source · pub trait SyncStorage: StorageEventLogs {
// Required methods
fn is_client_storage(&self) -> bool;
fn sync_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SyncStatus>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn change_set<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<CreateSet>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Storage implementations that can synchronize.
Required Methods§
sourcefn is_client_storage(&self) -> bool
fn is_client_storage(&self) -> bool
Determine if this is client-side storage.
sourcefn sync_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SyncStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sync_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SyncStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the sync status.
Provided Methods§
Implementations on Foreign Types§
source§impl SyncStorage for LocalAccount
Available on crate feature account only.
impl SyncStorage for LocalAccount
Available on crate feature
account only.