Struct os_pipe::PipeWriter [−][src]
pub struct PipeWriter(_);
The writing end of a pipe, returned by pipe
.
PipeWriter
implements Into<Stdio>
, so you can pass it as an argument to
Command::stdout
or Command::stderr
to spawn a child process that writes
to the pipe.
Methods
impl PipeWriter
[src]
impl PipeWriter
pub fn try_clone(&self) -> Result<PipeWriter>
[src]
pub fn try_clone(&self) -> Result<PipeWriter>
Trait Implementations
impl IntoRawHandle for PipeWriter
[src]
impl IntoRawHandle for PipeWriter
fn into_raw_handle(self) -> RawHandle
[src]
fn into_raw_handle(self) -> RawHandle
Consumes this object, returning the raw underlying handle. Read more
impl AsRawHandle for PipeWriter
[src]
impl AsRawHandle for PipeWriter
fn as_raw_handle(&self) -> RawHandle
[src]
fn as_raw_handle(&self) -> RawHandle
Extracts the raw handle, without taking any ownership.
impl FromRawHandle for PipeWriter
[src]
impl FromRawHandle for PipeWriter
ⓘImportant traits for PipeWriterunsafe fn from_raw_handle(handle: RawHandle) -> PipeWriter
[src]
unsafe fn from_raw_handle(handle: RawHandle) -> PipeWriter
Constructs a new I/O object from the specified raw handle. Read more
impl Debug for PipeWriter
[src]
impl Debug for PipeWriter
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Write for PipeWriter
[src]
impl Write for PipeWriter
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>
[src]
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
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<'a> Write for &'a PipeWriter
[src]
impl<'a> Write for &'a PipeWriter
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>
[src]
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
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 From<PipeWriter> for Stdio
[src]
impl From<PipeWriter> for Stdio
fn from(p: PipeWriter) -> Stdio
[src]
fn from(p: PipeWriter) -> Stdio
Performs the conversion.
Auto Trait Implementations
impl Send for PipeWriter
impl Send for PipeWriter
impl Sync for PipeWriter
impl Sync for PipeWriter