pub struct CStat { /* private fields */ }Expand description
p4 [g-opts] cstat [files ...]
Dump change or sync status for the current client workspace.
The p4 cstat command lists changes that are required, already synced, or
partially synced to the current client workspace. Spawn it with a list of
files to restrict the report; with no files, all changes are reported.
Implementations§
Source§impl CStat
impl CStat
Sourcepub fn new(bin: impl Into<PathBuf>, global_opts: GlobalOpts) -> Self
pub fn new(bin: impl Into<PathBuf>, global_opts: GlobalOpts) -> Self
Creates a new p4 cstat command.
bin is the path to the Perforce command-line executable.
Sourcepub fn get_global_opts(&self) -> &GlobalOpts
pub fn get_global_opts(&self) -> &GlobalOpts
Sourcepub fn set_global_opts(&mut self, v: GlobalOpts) -> &mut Self
pub fn set_global_opts(&mut self, v: GlobalOpts) -> &mut Self
Sourcepub fn global_opts(self, v: GlobalOpts) -> Self
pub fn global_opts(self, v: GlobalOpts) -> Self
Trait Implementations§
Source§impl<S, I> ParameterizedSpawn<(S,)> for CStat
impl<S, I> ParameterizedSpawn<(S,)> for CStat
Source§fn spawn_with(&mut self, (files): (S,)) -> Result<Self::Output, Self::Error>
fn spawn_with(&mut self, (files): (S,)) -> Result<Self::Output, Self::Error>
Spawns p4 cstat for the given files as a child process with piped
standard output and error streams; use the returned Child handle
to wait for it or interact with it.
type Output = Child
type Error = Error
Source§impl SubCommand for CStat
impl SubCommand for CStat
fn name(&self) -> &str
fn inject_local_args(&self, _: &mut Command)
fn global_opts(&self) -> Option<&GlobalOpts>
fn inject_args(&self, command: &mut Command)
fn setup_command<S: AsRef<OsStr>>(&self, bin: S) -> Command
Auto Trait Implementations§
impl Freeze for CStat
impl RefUnwindSafe for CStat
impl Send for CStat
impl Sync for CStat
impl Unpin for CStat
impl UnsafeUnpin for CStat
impl UnwindSafe for CStat
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