pub struct DeleteMode<I = Unselected, S = Unselected> { /* private fields */ }Expand description
The delete form: p4 client -d [-f [-Fs|-Fd]] name and p4 client -d -f --serverid=X [-Fs] name.
The two type parameters encode the documented compatibility matrix at compile time:
Itracks--serverid=X:UnselectedorServerIdSetStracks the shelved handling:Unselected,ShelvedKept(-Fs), orShelvedDeleted(-Fd)
-Fs and -Fd are mutually exclusive, and --serverid=X can only be combined with -Fs, never with -Fd; the illegal combinations have no reachable state. The options may be selected in any order (for example delete_shelved().force() is equivalent to force().delete_shelved()); a state where -Fs, -Fd, or --serverid=X is set without -f is an intermediate state that cannot be spawned until Client::force is called. Entered with Client::delete, or directly from the GeneralMode state via Client::server_id, Client::keep_shelved, and Client::delete_shelved.
Trait Implementations§
Source§impl<I, S, F> ClientMode<F, Unselected, Unselected> for DeleteMode<I, S>where
I: ServerIdState,
S: ShelvedState,
F: ExclusiveOption,
impl<I, S, F> ClientMode<F, Unselected, Unselected> for DeleteMode<I, S>where
I: ServerIdState,
S: ShelvedState,
F: ExclusiveOption,
Source§fn inject_mode_args(
&self,
command: &mut Command,
force: &F,
_: &Unselected,
_: &Unselected,
)
fn inject_mode_args( &self, command: &mut Command, force: &F, _: &Unselected, _: &Unselected, )
Inject the mode flag(s) and the carried options into
command.impl<I: Eq, S: Eq> Eq for DeleteMode<I, S>
impl<I: PartialEq, S: PartialEq> StructuralPartialEq for DeleteMode<I, S>
Auto Trait Implementations§
impl<I, S> Freeze for DeleteMode<I, S>
impl<I, S> RefUnwindSafe for DeleteMode<I, S>
impl<I, S> Send for DeleteMode<I, S>
impl<I, S> Sync for DeleteMode<I, S>
impl<I, S> Unpin for DeleteMode<I, S>
impl<I, S> UnsafeUnpin for DeleteMode<I, S>
impl<I, S> UnwindSafe for DeleteMode<I, S>
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