[][src]Trait sync15::SetupStorageClient

pub trait SetupStorageClient {
    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<EncryptedBso>>;
fn put_meta_global(
        &self,
        xius: ServerTimestamp,
        global: &MetaGlobalRecord
    ) -> Result<ServerTimestamp>;
fn put_crypto_keys(
        &self,
        xius: ServerTimestamp,
        keys: &EncryptedBso
    ) -> Result<()>;
fn wipe_all_remote(&self) -> Result<()>; }

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

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<EncryptedBso>>

fn put_meta_global(
    &self,
    xius: ServerTimestamp,
    global: &MetaGlobalRecord
) -> Result<ServerTimestamp>

fn put_crypto_keys(
    &self,
    xius: ServerTimestamp,
    keys: &EncryptedBso
) -> Result<()>

fn wipe_all_remote(&self) -> Result<()>

Loading content...

Implementors

impl SetupStorageClient for Sync15StorageClient[src]

Loading content...