pub struct SwitchViewMode<V> { /* private fields */ }Expand description
The switch-view form: p4 client -s [-f] (-S stream | -t template) [name].
Switching views is not allowed in a client that has opened files; the
-f option can be used with -s to force switching with opened files.
View switching has no effect on files in a client workspace until
p4 sync is run.
Trait Implementations§
Source§impl<F> ClientMode<F, Unselected, Unselected> for SwitchViewMode<StreamSwitch>where
F: ExclusiveOption,
impl<F> ClientMode<F, Unselected, Unselected> for SwitchViewMode<StreamSwitch>where
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.Source§impl<F> ClientMode<F, Unselected, Unselected> for SwitchViewMode<TemplateSwitch>where
F: ExclusiveOption,
impl<F> ClientMode<F, Unselected, Unselected> for SwitchViewMode<TemplateSwitch>where
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.Source§impl<V: Clone> Clone for SwitchViewMode<V>
impl<V: Clone> Clone for SwitchViewMode<V>
Source§impl<V: Debug> Debug for SwitchViewMode<V>
impl<V: Debug> Debug for SwitchViewMode<V>
Source§impl<V: Default> Default for SwitchViewMode<V>
impl<V: Default> Default for SwitchViewMode<V>
impl<V: Eq> Eq for SwitchViewMode<V>
Source§impl<V: PartialEq> PartialEq for SwitchViewMode<V>
impl<V: PartialEq> PartialEq for SwitchViewMode<V>
impl<V: PartialEq> StructuralPartialEq for SwitchViewMode<V>
Auto Trait Implementations§
impl<V> Freeze for SwitchViewMode<V>where
V: Freeze,
impl<V> RefUnwindSafe for SwitchViewMode<V>where
V: RefUnwindSafe,
impl<V> Send for SwitchViewMode<V>where
V: Send,
impl<V> Sync for SwitchViewMode<V>where
V: Sync,
impl<V> Unpin for SwitchViewMode<V>where
V: Unpin,
impl<V> UnsafeUnpin for SwitchViewMode<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for SwitchViewMode<V>where
V: 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