Struct os_pipe::PipeWriter [−][src]
pub struct PipeWriter(_);
Expand description
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.
Implementations
Trait Implementations
Performs the conversion.
unsafe fn from_raw_fd(fd: RawFd) -> PipeWriterⓘNotable traits for PipeWriterimpl Write for PipeWriterimpl<'a> Write for &'a PipeWriter
unsafe fn from_raw_fd(fd: RawFd) -> PipeWriterⓘNotable traits for PipeWriterimpl Write for PipeWriterimpl<'a> Write for &'a PipeWriter
impl Write for PipeWriterimpl<'a> Write for &'a PipeWriter
Constructs a new instance of Self
from the given raw file
descriptor. Read more
Consumes this object, returning the raw underlying file descriptor. Read more
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more