pub enum FileDescriptor {
File(File),
Duplicate(RawFd),
Closed,
}Expand description
Represents an open file descriptor
Variants§
File(File)
Standard file opened for reading, writing, or both
Duplicate(RawFd)
Duplicate of another file descriptor
Closed
Closed file descriptor
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileDescriptor
impl RefUnwindSafe for FileDescriptor
impl Send for FileDescriptor
impl Sync for FileDescriptor
impl Unpin for FileDescriptor
impl UnwindSafe for FileDescriptor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more