doc.rust-lang.org
fn process_group(&mut self, pgroup: i32) -> &mut process::Command
Sets the process group ID (PGID) of the child process. Equivalent to a setpgid call in the child process, but may be more efficient.
method
std
Stable since 1.64.0
Version 1.100.0-nightly
doc.rust-lang.org
unsafe fn pre_exec<F>(&mut self, f: F) -> &mut process::Command
Schedules a closure to be run just before the exec function is invoked.
method
std
Stable since 1.34.0
Version 1.100.0-nightly
doc.rust-lang.org
fn gid(&mut self, id: u32) -> &mut process::Command
Similar to uid, but sets the group ID of the child process. This has the same semantics as the uid field.
method
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn exec(&mut self) -> io::Error
Performs all the required setup by this Command, followed by calling the execvp syscall.
method
std
Stable since 1.9.0
Version 1.100.0-nightly
doc.rust-lang.org
unsafe fn before_exec<F>(&mut self, f: F) -> &mut process::Command
Schedules a closure to be run just before the exec function is invoked.
method
std
Stable since 1.15.0
Version 1.100.0-nightly
doc.rust-lang.org
fn arg0<S>(&mut self, arg: S) -> &mut process::Command
Set executable argument
method
std
Stable since 1.45.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait CommandExt
Unix-specific extensions to the process::Command builder.
trait
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod process
Unix-specific extensions to primitives in the std::process module.
module
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod prelude
A prelude for conveniently writing platform-specific code.
module
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn write_timeout(&self) -> io::Result<Option<Duration>>
Returns the write timeout of this socket.
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn try_clone(&self) -> io::Result<UnixStream>
Creates a new independently owned handle to the underlying socket.
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn take_error(&self) -> io::Result<Option<io::Error>>
Returns the value of the SO_ERROR option.
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn shutdown(&self, how: Shutdown) -> io::Result<()>
Shuts down the read, write, or both halves of this connection.
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn set_write_timeout(&self, timeout: Option<Duration>) -> io::Result<()>
Sets the write timeout for the socket.
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn set_read_timeout(&self, timeout: Option<Duration>) -> io::Result<()>
Sets the read timeout for the socket.
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn set_nonblocking(&self, nonblocking: bool) -> io::Result<()>
Moves the socket into or out of nonblocking mode.
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn read_timeout(&self) -> io::Result<Option<Duration>>
Returns the read timeout of this socket.
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn peer_addr(&self) -> io::Result<SocketAddr>
Returns the socket address of the remote half of this connection.
method
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn pair() -> io::Result<(UnixStream, UnixStream)>
Creates an unnamed pair of connected sockets.
associated_function
std
Stable since 1.10.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn local_addr(&self) -> io::Result<SocketAddr>
Returns the socket address of the local half of this connection.
method
std
Stable since 1.10.0
Version 1.100.0-nightly