#[repr(C, packed(1))]pub struct EpollEvent {
pub events: u32,
pub data: u64,
}Expand description
Miroir #[repr(C, packed)] de struct epoll_event (12 octets sur
x86_64/aarch64). Lu de façon asynchrone par IORING_OP_EPOLL_CTL ⇒ gardé en
vie dans le slot S1 jusqu’à la complétion.
Fields§
§events: u32Événements surveillés (POLL*/EPOLL*).
data: u64Donnée opaque renvoyée à la notification (epoll_data_t).
Implementations§
Source§impl EpollEvent
impl EpollEvent
Sourcepub fn new(events: PollEvents, data: u64) -> Self
pub fn new(events: PollEvents, data: u64) -> Self
Construit un epoll_event à partir d’événements typés et d’une donnée.
Trait Implementations§
Source§impl Clone for EpollEvent
impl Clone for EpollEvent
Source§fn clone(&self) -> EpollEvent
fn clone(&self) -> EpollEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EpollEvent
Source§impl Debug for EpollEvent
impl Debug for EpollEvent
impl Eq for EpollEvent
Source§impl PartialEq for EpollEvent
impl PartialEq for EpollEvent
impl StructuralPartialEq for EpollEvent
Auto Trait Implementations§
impl Freeze for EpollEvent
impl RefUnwindSafe for EpollEvent
impl Send for EpollEvent
impl Sync for EpollEvent
impl Unpin for EpollEvent
impl UnsafeUnpin for EpollEvent
impl UnwindSafe for EpollEvent
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