Protocol std::io::unix::FdReadWrite
protocol FdReadWrite<Self> { ... }
Self: AsFileDescriptor<Self>
Mixin for read and write operations for objects that can be viewed as a file descriptor.
Provided methods
-
Reads from the stream into a provided buffer.
If successful, returns the number of bytes read. This may be less than the size of the provided buffer.
-
Write the buffer to the stream.
Returns the number of bytes written. This may be less than the size of the buffer. See also write_all, which can be used to write the entire buffer.