Struct mio_child_process::Process [−][src]
pub struct Process { /* fields omitted */ }
An async child process
Methods
impl Process
[src]
impl Process
pub fn try_recv(&mut self) -> Result<ProcessEvent, TryRecvError>
[src]
pub fn try_recv(&mut self) -> Result<ProcessEvent, TryRecvError>
Try to receive an event from the child. This should be called after mio's Poll returns an event for this token
pub fn kill(&mut self) -> Result<()>
[src]
pub fn kill(&mut self) -> Result<()>
Kill the process child, and all it's children.
pub fn id(&self) -> u32
[src]
pub fn id(&self) -> u32
Returns the OS-assigned process identifier associated with this child.
Trait Implementations
impl Write for Process
[src]
impl Write for Process
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer to the Stdin stream of this child process.
If the child is not created with .stdin(Stdio::piped())
,
This function will return an error ErrorKind::NotConnected
.
fn flush(&mut self) -> Result<()>
[src]
fn flush(&mut self) -> Result<()>
Flushed the Stdin stream of this child process.
If the child is not created with .stdin(Stdio::piped())
,
This function will return an error ErrorKind::NotConnected
.
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
Writes a formatted string into this writer, returning any error encountered. Read more
fn by_ref(&mut self) -> &mut Self
1.0.0[src]
fn by_ref(&mut self) -> &mut Self
Creates a "by reference" adaptor for this instance of Write
. Read more
impl Evented for Process
[src]
impl Evented for Process
fn register(
&self,
poll: &Poll,
token: Token,
interest: Ready,
ops: PollOpt
) -> Result<()>
[src]
fn register(
&self,
poll: &Poll,
token: Token,
interest: Ready,
ops: PollOpt
) -> Result<()>
Register the child process with the poll so it can notify when the child process updates
fn reregister(
&self,
poll: &Poll,
token: Token,
interest: Ready,
ops: PollOpt
) -> Result<()>
[src]
fn reregister(
&self,
poll: &Poll,
token: Token,
interest: Ready,
ops: PollOpt
) -> Result<()>
Reregister the child process with the poll so it can notify when the child process updates
fn deregister(&self, poll: &Poll) -> Result<()>
[src]
fn deregister(&self, poll: &Poll) -> Result<()>
Deregister the child process with the poll