pub struct BackgroundSync { /* private fields */ }Expand description
Background sync engine that owns all sync state and handles operations
Implementations§
Source§impl BackgroundSync
impl BackgroundSync
Sourcepub fn start(
instance: Instance,
sync_tree_id: ID,
queue: Arc<SyncQueue>,
peer_state: Arc<PeerStates>,
) -> Sender<SyncCommand>
pub fn start( instance: Instance, sync_tree_id: ID, queue: Arc<SyncQueue>, peer_state: Arc<PeerStates>, ) -> Sender<SyncCommand>
Start the background sync engine and return a command sender.
The engine starts with no transports registered. Use AddTransport
commands to add transports after starting.
Auto Trait Implementations§
impl Freeze for BackgroundSync
impl !RefUnwindSafe for BackgroundSync
impl Send for BackgroundSync
impl Sync for BackgroundSync
impl Unpin for BackgroundSync
impl UnsafeUnpin for BackgroundSync
impl !UnwindSafe for BackgroundSync
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 more