#[repr(C)]pub struct pollfd {
pub fd: c_int,
pub events: c_short,
pub revents: c_short,
}Expand description
See https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/poll.h.html.
A structure storing a file descriptor along with input and output flags for poll operations.
Fields§
§fd: c_intThe following descriptor being polled.
events: c_shortThe input event flags.
revents: c_shortThe output event flags.
Auto Trait Implementations§
impl Freeze for pollfd
impl RefUnwindSafe for pollfd
impl Send for pollfd
impl Sync for pollfd
impl Unpin for pollfd
impl UnsafeUnpin for pollfd
impl UnwindSafe for pollfd
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