pub struct FdRef { /* private fields */ }Expand description
A zero-cost (well, very, very, low cost) borrow of an OwnedFd.
This cannot be constructed directly, and can only exist as &FdRef.
As a result, it might be slightly larger than a bare RawFd.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FdRef
impl RefUnwindSafe for FdRef
impl Send for FdRef
impl Sync for FdRef
impl Unpin for FdRef
impl UnwindSafe for FdRef
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