pub struct Counters { /* private fields */ }Expand description
p4 [g-opts] counters [-e nameFilter] [-m max]
Display the list of long-term variables used by P4 Server and associated scripts.
The bare command reports all counters and their values; Self::filter
restricts the report to counters whose names match a pattern, and
Self::limit caps the number of counters listed.
Implementations§
Source§impl Counters
impl Counters
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 counters 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
Sourcepub fn get_filter(&self) -> Option<&str>
pub fn get_filter(&self) -> Option<&str>
§Description
-e nameFilter
List counters with a name that matches the nameFilter pattern, for
example: p4 counters -e 'mycounter-*'
Sourcepub fn set_filter(&mut self, v: impl Into<String>) -> &mut Self
pub fn set_filter(&mut self, v: impl Into<String>) -> &mut Self
§Description
-e nameFilter
List counters with a name that matches the nameFilter pattern, for
example: p4 counters -e 'mycounter-*'
Sourcepub fn filter(self, v: impl Into<String>) -> Self
pub fn filter(self, v: impl Into<String>) -> Self
§Description
-e nameFilter
List counters with a name that matches the nameFilter pattern, for
example: p4 counters -e 'mycounter-*'
Trait Implementations§
Source§impl ParameterizedSpawn<()> for Counters
impl ParameterizedSpawn<()> for Counters
Source§impl SubCommand for Counters
impl SubCommand for Counters
fn name(&self) -> &str
fn inject_local_args(&self, command: &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 Counters
impl RefUnwindSafe for Counters
impl Send for Counters
impl Sync for Counters
impl Unpin for Counters
impl UnsafeUnpin for Counters
impl UnwindSafe for Counters
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