Struct fd::FileDesc
[−]
[src]
pub struct FileDesc {
// some fields omitted
}Wrapper around a raw file descriptor.
Methods
impl FileDesc
fn new(fd: RawFd, close_on_drop: bool) -> FileDesc
Set close_on_drop to true to close the inner file descriptor when the FileDesc is
drop.
fn dup(&self) -> Result<FileDesc>
Duplicate the inner file descriptor.