pub struct P4Command<'a> { /* private fields */ }Implementations§
Source§impl<'a> P4Command<'a>
impl<'a> P4Command<'a>
pub fn arg(&mut self, arg: impl AsRef<OsStr>) -> &mut Self
pub fn args(&mut self, args: &[impl AsRef<OsStr>]) -> &mut Self
Sourcepub fn timeout(&mut self, timeout: Duration) -> &mut Self
pub fn timeout(&mut self, timeout: Duration) -> &mut Self
Maximum wall-clock time. Kills the direct child on timeout.
Use P4Output::timed_out to detect timeout vs normal exit.
pub fn cwd(&mut self, path: impl Into<PathBuf>) -> &mut Self
pub fn env( &mut self, key: impl Into<OsString>, val: impl Into<OsString>, ) -> &mut Self
pub fn stdin(&mut self, data: impl Into<Vec<u8>>) -> &mut Self
pub fn run(&mut self) -> Result<P4Output>
Auto Trait Implementations§
impl<'a> Freeze for P4Command<'a>
impl<'a> RefUnwindSafe for P4Command<'a>
impl<'a> Send for P4Command<'a>
impl<'a> Sync for P4Command<'a>
impl<'a> Unpin for P4Command<'a>
impl<'a> UnsafeUnpin for P4Command<'a>
impl<'a> UnwindSafe for P4Command<'a>
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