[][src]Struct sync15::sync_multiple::SyncMultipleDriver

struct SyncMultipleDriver<'info, 'res, 'pgs, 'mcs> {
    command_processor: Option<&'info dyn CommandProcessor>,
    stores: &'info [&'info dyn Store],
    storage_init: &'info Sync15StorageClientInit,
    root_sync_key: &'info KeyBundle,
    interruptee: &'info dyn Interruptee,
    backoff: Arc<BackoffState>,
    engines_to_state_change: Option<&'info HashMap<String, bool>>,
    result: &'res mut SyncResult,
    persisted_global_state: &'pgs mut Option<String>,
    mem_cached_state: &'mcs mut MemoryCachedState,
    ignore_soft_backoff: bool,
    saw_auth_error: bool,
}

Fields

command_processor: Option<&'info dyn CommandProcessor>stores: &'info [&'info dyn Store]storage_init: &'info Sync15StorageClientInitroot_sync_key: &'info KeyBundleinterruptee: &'info dyn Interrupteebackoff: Arc<BackoffState>engines_to_state_change: Option<&'info HashMap<String, bool>>result: &'res mut SyncResultpersisted_global_state: &'pgs mut Option<String>mem_cached_state: &'mcs mut MemoryCachedStateignore_soft_backoff: boolsaw_auth_error: bool

Implementations

impl<'info, 'res, 'pgs, 'mcs> SyncMultipleDriver<'info, 'res, 'pgs, 'mcs>[src]

fn sync(self) -> Result<(), Error>[src]

The actual worker for sync_multiple.

fn was_interrupted(&mut self) -> bool[src]

fn sync_stores(
    &mut self,
    client_info: &ClientInfo,
    global_state: &mut GlobalState,
    clients: Option<&Engine<'_>>
) -> SyncTelemetry
[src]

fn run_state_machine(
    &mut self,
    client_info: &ClientInfo,
    pgs: &mut PersistedGlobalState
) -> Result<GlobalState, Error>
[src]

fn wipe_or_reset_engines(
    &mut self,
    changes: EngineChangesNeeded,
    client: &Sync15StorageClient
) -> Result<(), Error>
[src]

fn prepare_client_info(&mut self) -> Result<ClientInfo, Error>[src]

fn prepare_persisted_state(&mut self) -> PersistedGlobalState[src]

Auto Trait Implementations

impl<'info, 'res, 'pgs, 'mcs> !RefUnwindSafe for SyncMultipleDriver<'info, 'res, 'pgs, 'mcs>

impl<'info, 'res, 'pgs, 'mcs> !Send for SyncMultipleDriver<'info, 'res, 'pgs, 'mcs>

impl<'info, 'res, 'pgs, 'mcs> !Sync for SyncMultipleDriver<'info, 'res, 'pgs, 'mcs>

impl<'info, 'res, 'pgs, 'mcs> Unpin for SyncMultipleDriver<'info, 'res, 'pgs, 'mcs>

impl<'info, 'res, 'pgs, 'mcs> !UnwindSafe for SyncMultipleDriver<'info, 'res, 'pgs, 'mcs>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,