pub struct SyncManagerOptions {
pub concurrency: usize,
pub mode: SyncMode,
pub skip_uncommitted: bool,
pub dry_run: bool,
}Expand description
Options for the sync manager.
Fields§
§concurrency: usizeMaximum number of concurrent syncs
mode: SyncModeSync mode (fetch or pull)
skip_uncommitted: boolSkip repos with uncommitted changes
dry_run: boolWhether this is a dry run
Implementations§
Source§impl SyncManagerOptions
impl SyncManagerOptions
Sourcepub fn with_concurrency(self, concurrency: usize) -> Self
pub fn with_concurrency(self, concurrency: usize) -> Self
Sets the concurrency level, clamped to [MIN_CONCURRENCY, MAX_CONCURRENCY].
Sourcepub fn with_skip_uncommitted(self, skip_uncommitted: bool) -> Self
pub fn with_skip_uncommitted(self, skip_uncommitted: bool) -> Self
Sets whether to skip uncommitted repos.
Sourcepub fn with_dry_run(self, dry_run: bool) -> Self
pub fn with_dry_run(self, dry_run: bool) -> Self
Sets dry run mode.
Trait Implementations§
Source§impl Clone for SyncManagerOptions
impl Clone for SyncManagerOptions
Source§fn clone(&self) -> SyncManagerOptions
fn clone(&self) -> SyncManagerOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SyncManagerOptions
impl Debug for SyncManagerOptions
Auto Trait Implementations§
impl Freeze for SyncManagerOptions
impl RefUnwindSafe for SyncManagerOptions
impl Send for SyncManagerOptions
impl Sync for SyncManagerOptions
impl Unpin for SyncManagerOptions
impl UnsafeUnpin for SyncManagerOptions
impl UnwindSafe for SyncManagerOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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