Struct nrfxlib_sys::nrf_pollfd
source · #[repr(C)]pub struct nrf_pollfd {
pub fd: c_int,
pub events: c_short,
pub revents: c_short,
}
Expand description
This structure is used to describe which events to poll for a given socket.
Fields§
§fd: c_int
Socket handle
events: c_short
The input event flags
revents: c_short
The output event flags
Trait Implementations§
source§impl Clone for nrf_pollfd
impl Clone for nrf_pollfd
source§fn clone(&self) -> nrf_pollfd
fn clone(&self) -> nrf_pollfd
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for nrf_pollfd
impl Debug for nrf_pollfd
impl Copy for nrf_pollfd
Auto Trait Implementations§
impl RefUnwindSafe for nrf_pollfd
impl Send for nrf_pollfd
impl Sync for nrf_pollfd
impl Unpin for nrf_pollfd
impl UnwindSafe for nrf_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