Trait sync15::client::SetupStorageClient

source ·
pub trait SetupStorageClient {
    // Required methods
    fn fetch_info_configuration(
        &self
    ) -> Result<Sync15ClientResponse<InfoConfiguration>>;
    fn fetch_info_collections(
        &self
    ) -> Result<Sync15ClientResponse<InfoCollections>>;
    fn fetch_meta_global(
        &self
    ) -> Result<Sync15ClientResponse<MetaGlobalRecord>>;
    fn fetch_crypto_keys(
        &self
    ) -> Result<Sync15ClientResponse<IncomingEncryptedBso>>;
    fn put_meta_global(
        &self,
        xius: ServerTimestamp,
        global: &MetaGlobalRecord
    ) -> Result<ServerTimestamp>;
    fn put_crypto_keys(
        &self,
        xius: ServerTimestamp,
        keys: &OutgoingEncryptedBso
    ) -> Result<()>;
    fn wipe_all_remote(&self) -> Result<()>;
}
Expand description

A trait containing the methods required to run through the setup state machine. This is factored out into a separate trait to make mocking easier.

Required Methods§

Implementors§