pub struct OwnedFd { /* private fields */ }
Expand description
An owned representation of a file descriptor
When it is dropped, the underlying frile descriptor will be dropped.
You can take ownership of the file descriptor (and avoid it being closed)
by using the
IntoRawFd
implementation.
Trait Implementations
sourceimpl FromRawFd for OwnedFd
impl FromRawFd for OwnedFd
sourceunsafe fn from_raw_fd(fd: RawFd) -> OwnedFd
unsafe fn from_raw_fd(fd: RawFd) -> OwnedFd
Constructs a new instance of Self
from the given raw file
descriptor. Read more
sourceimpl IntoRawFd for OwnedFd
impl IntoRawFd for OwnedFd
sourcefn into_raw_fd(self) -> RawFd
fn into_raw_fd(self) -> RawFd
Consumes this object, returning the raw underlying file descriptor. Read more
impl Eq for OwnedFd
impl StructuralEq for OwnedFd
impl StructuralPartialEq for OwnedFd
Auto Trait Implementations
impl RefUnwindSafe for OwnedFd
impl Send for OwnedFd
impl Sync for OwnedFd
impl Unpin for OwnedFd
impl UnwindSafe for OwnedFd
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more