pub struct EncryptionSyncService { /* private fields */ }
Expand description
High-level helper for synchronizing encryption events using sliding sync.
See the module’s documentation for more details.
Implementations§
Source§impl EncryptionSyncService
impl EncryptionSyncService
Sourcepub async fn new(
client: Client,
poll_and_network_timeouts: Option<(Duration, Duration)>,
with_locking: WithLocking,
) -> Result<Self, Error>
pub async fn new( client: Client, poll_and_network_timeouts: Option<(Duration, Duration)>, with_locking: WithLocking, ) -> Result<Self, Error>
Creates a new instance of a EncryptionSyncService
.
This will create and manage an instance of matrix_sdk::SlidingSync
.
Sourcepub async fn run_fixed_iterations(
self,
num_iterations: u8,
_permit: OwnedMutexGuard<EncryptionSyncPermit>,
) -> Result<(), Error>
pub async fn run_fixed_iterations( self, num_iterations: u8, _permit: OwnedMutexGuard<EncryptionSyncPermit>, ) -> Result<(), Error>
Runs an EncryptionSyncService
loop for a fixed number of iterations.
This runs for the given number of iterations, or less than that, if it stops earlier or could not acquire a cross-process lock (if configured with it).
Note: the EncryptionSyncPermit
parameter ensures that there’s at
most one encryption sync running at any time. See its documentation
for more details.
Auto Trait Implementations§
impl Freeze for EncryptionSyncService
impl !RefUnwindSafe for EncryptionSyncService
impl Send for EncryptionSyncService
impl Sync for EncryptionSyncService
impl Unpin for EncryptionSyncService
impl !UnwindSafe for EncryptionSyncService
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
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 more