pub struct AutoNameSettings { /* private fields */ }Expand description
Controls in detail which parts of the command are automatically captured as the process name.
Implementations§
Source§impl AutoNameSettings
impl AutoNameSettings
Sourcepub fn program_only() -> Self
pub fn program_only() -> Self
Capture the program name.
Example: Command::new("ls").arg("-la").env("FOO", "foo) is captured as "ls".
Sourcepub fn program_with_args() -> Self
pub fn program_with_args() -> Self
Capture the program name and all arguments.
Example: Command::new("ls").arg("-la").env("FOO", "foo) is captured as "ls -la".
Sourcepub fn program_with_env_and_args() -> Self
pub fn program_with_env_and_args() -> Self
Capture the program name and all environment variables and arguments.
Example: Command::new("ls").arg("-la").env("FOO", "foo) is captured as "FOO=foo ls -la".
Trait Implementations§
Source§impl Clone for AutoNameSettings
impl Clone for AutoNameSettings
Source§fn clone(&self) -> AutoNameSettings
fn clone(&self) -> AutoNameSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AutoNameSettings
impl Debug for AutoNameSettings
Source§impl PartialEq for AutoNameSettings
impl PartialEq for AutoNameSettings
impl Copy for AutoNameSettings
impl Eq for AutoNameSettings
impl StructuralPartialEq for AutoNameSettings
Auto Trait Implementations§
impl Freeze for AutoNameSettings
impl RefUnwindSafe for AutoNameSettings
impl Send for AutoNameSettings
impl Sync for AutoNameSettings
impl Unpin for AutoNameSettings
impl UnwindSafe for AutoNameSettings
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