pub struct SyncComponents { /* private fields */ }Expand description
Components needed to run sync cycles.
Owns the exact database, storage, register clock, device identity, at-rest cipher, pending-rotation marker, and signing identity that initialization checked. Callers cannot replace any of them before running a cycle.
Implementations§
Source§impl SyncComponents
impl SyncComponents
pub async fn run_cycle( &self, clock: &dyn Clock, observer: Option<&dyn BlobTransitionObserver>, ) -> Result<SyncCycleResult, SyncCycleFailure>
pub async fn list_storage_objects_for_test( &self, prefix: &str, ) -> Result<Vec<String>, StorageError>
pub fn uses_storage_for_test( &self, expected: &Arc<dyn CloudSyncObjectStorage>, ) -> bool
pub fn uses_store_dir_for_test(&self, expected: &StoreDir) -> bool
pub fn encryption_generation_for_test(&self) -> Option<u64>
pub fn open_sealed_blob_for_test( &self, stored: &[u8], aad_context: &[u8], ) -> Result<(KeyFingerprint, Vec<u8>), EncryptionError>
pub fn adopt_key_rotation( &self, encryption: EncryptionService, ) -> Result<String, KeyError>
Auto Trait Implementations§
impl Freeze for SyncComponents
impl !RefUnwindSafe for SyncComponents
impl Send for SyncComponents
impl Sync for SyncComponents
impl Unpin for SyncComponents
impl UnsafeUnpin for SyncComponents
impl !UnwindSafe for SyncComponents
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.