#[repr(C)]pub struct pollfd_t {
pub fd: i32,
pub events: i16,
pub revents: i16,
}Fields§
§fd: i32File descriptor
events: i16Requested events.
Used as input parameter, a bit mask specifying the events the application is interested in for the file descriptor fd.
revents: i16Returned events
Used an output parameter, filled by the kernel with the events that actually occurred.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for pollfd_t
impl RefUnwindSafe for pollfd_t
impl Send for pollfd_t
impl Sync for pollfd_t
impl Unpin for pollfd_t
impl UnsafeUnpin for pollfd_t
impl UnwindSafe for pollfd_t
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