pub struct FdWrapper<T: AsRawFd>(/* private fields */);
Expand description
Wrapper to use a type implementing AsRawFd
but not AsFd
with Generic
Implementations§
Trait Implementations§
source§impl<T: AsRawFd> AsFd for FdWrapper<T>
impl<T: AsRawFd> AsFd for FdWrapper<T>
source§fn as_fd(&self) -> BorrowedFd<'_>
fn as_fd(&self) -> BorrowedFd<'_>
Borrows the file descriptor. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for FdWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for FdWrapper<T>where
T: Send,
impl<T> Sync for FdWrapper<T>where
T: Sync,
impl<T> Unpin for FdWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for FdWrapper<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> AsSource for Twhere
T: AsFd,
impl<T> AsSource for Twhere
T: AsFd,
source§fn source(&self) -> BorrowedFd<'_>
fn source(&self) -> BorrowedFd<'_>
Returns the borrowed file descriptor.
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