pub struct RegularMode<Mode = Unselected, P = Unselected> { /* private fields */ }Expand description
Regular mode of p4 sync: the command forms that operate on the client
workspace.
All common options are stored directly on this struct. The Mode type
parameter selects the mutually exclusive execution sub-mode:
Unselected(default): the first command form, plain regular sync.ForceRegularMode: entered by setting-f,-k, or-r; locks out further transitions toSafeCheckModeorPopulateMode.SafeCheckMode: entered bySync::safe_check(-s).PopulateMode: entered bySync::populate(-p).
The P type parameter tracks the preview mode (Unselected by default,
PreviewResult or PreviewNetworkTraffic otherwise).
Trait Implementations§
Source§impl<Mode: ExclusiveOption, P: ExclusiveOption> ExclusiveOption for RegularMode<Mode, P>
impl<Mode: ExclusiveOption, P: ExclusiveOption> ExclusiveOption for RegularMode<Mode, P>
Source§fn inject_args(&self, command: &mut Command)
fn inject_args(&self, command: &mut Command)
Inject the CLI arguments corresponding to this selection into
command.Auto Trait Implementations§
impl<Mode, P> Freeze for RegularMode<Mode, P>
impl<Mode, P> RefUnwindSafe for RegularMode<Mode, P>where
Mode: RefUnwindSafe,
P: RefUnwindSafe,
impl<Mode, P> Send for RegularMode<Mode, P>
impl<Mode, P> Sync for RegularMode<Mode, P>
impl<Mode, P> Unpin for RegularMode<Mode, P>
impl<Mode, P> UnsafeUnpin for RegularMode<Mode, P>where
Mode: UnsafeUnpin,
P: UnsafeUnpin,
impl<Mode, P> UnwindSafe for RegularMode<Mode, P>where
Mode: UnwindSafe,
P: UnwindSafe,
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