[−][src]Trait io_close::Close
An extension trait for safely closing I/O related types containing a resource handle which, when closed, may return an I/O error.
Required methods
pub fn close(self) -> Result<()>[src]
Consumes and closes an I/O related type and its contained resource handle (such as a file descriptor). If any I/O errors occur, the first such error is returned.
Implementations on Foreign Types
impl Close for File[src]
impl Close for TcpListener[src]
impl Close for TcpStream[src]
impl Close for UdpSocket[src]
impl Close for RawFd[src]
impl Close for UnixDatagram[src]
impl Close for UnixListener[src]
impl Close for UnixStream[src]
impl Close for ChildStderr[src]
impl Close for ChildStdin[src]
impl Close for ChildStdout[src]
impl<W: Write + Close> Close for BufWriter<W>[src]
impl<W: Write + Close> Close for LineWriter<W>[src]
pub fn close(self) -> Result<()>[src]
Consumes and closes a LineWriter and
its contained Write instance. The
LineWriter is flushed before
closing. If any I/O errors occur, the first such error is
returned.