#[repr(C)]pub struct pollfd_t {
pub fd: i32,
pub events: i16,
pub revents: i16,
}
Fields§
§fd: i32
File descriptor
events: i16
Requested events.
Used as input parameter, a bit mask specifying the events the application is interested in for the file descriptor fd.
revents: i16
Returned 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 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