pub struct SyncManager<G: GitOperations> { /* private fields */ }Expand description
Manages parallel sync operations.
Implementations§
Source§impl<G: GitOperations + 'static> SyncManager<G>
impl<G: GitOperations + 'static> SyncManager<G>
Sourcepub fn new(git: G, options: SyncManagerOptions) -> Self
pub fn new(git: G, options: SyncManagerOptions) -> Self
Creates a new sync manager.
Sourcepub async fn sync_repos(
&self,
repos: Vec<LocalRepo>,
progress: Arc<dyn SyncProgress>,
) -> (OpSummary, Vec<SyncResult>)
pub async fn sync_repos( &self, repos: Vec<LocalRepo>, progress: Arc<dyn SyncProgress>, ) -> (OpSummary, Vec<SyncResult>)
Syncs repositories in parallel.
Sourcepub fn sync_single(&self, local_repo: &LocalRepo) -> SyncResult
pub fn sync_single(&self, local_repo: &LocalRepo) -> SyncResult
Syncs a single repository synchronously.
Auto Trait Implementations§
impl<G> Freeze for SyncManager<G>
impl<G> RefUnwindSafe for SyncManager<G>where
G: RefUnwindSafe,
impl<G> Send for SyncManager<G>
impl<G> Sync for SyncManager<G>
impl<G> Unpin for SyncManager<G>
impl<G> UnsafeUnpin for SyncManager<G>
impl<G> UnwindSafe for SyncManager<G>where
G: RefUnwindSafe,
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> 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