Struct rsix::io::PollFd [−][src]
#[repr(C)]pub struct PollFd<'fd> { /* fields omitted */ }
Expand description
struct pollfd
Implementations
Constructs a new PollFd
holding fd
and events
.
Constructs a new PollFd
holding fd
and events
.
This is the same as new
, but can be used to avoid borrowing the
BorrowedFd
, which can be tricky in situations where the BorrowedFd
is a temporary.
Trait Implementations
Borrows the file descriptor. Read more
Auto Trait Implementations
impl<'fd> RefUnwindSafe for PollFd<'fd>
impl<'fd> UnwindSafe for PollFd<'fd>
Blanket Implementations
Borrows the reference. Read more
pub fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target> where
Target: FromFilelike + IntoFilelike,
pub fn as_filelike_view<Target>(&self) -> FilelikeView<'_, Target> where
Target: FromFilelike + IntoFilelike,
Return a borrowing view of a resource which dereferences to a &Target
or &mut Target
. Read more
Borrows the reference.
pub fn as_socketlike_view<Target>(&self) -> FilelikeView<'_, Target> where
Target: FromSocketlike + IntoSocketlike,
pub fn as_socketlike_view<Target>(&self) -> FilelikeView<'_, Target> where
Target: FromSocketlike + IntoSocketlike,
Return a borrowing view of a resource which dereferences to a &Target
or &mut Target
. Read more
Mutably borrows from an owned value. Read more