#[repr(C)]
pub union EventData {
as_u64: u64,
sixty_four_bit_pointer: SixtyFourBitPointer,
}
Expand description
Data associated with an epoll::Event
. This can either be a 64-bit
integer value or a pointer which preserves pointer provenance.
Fields§
§as_u64: u64
A 64-bit integer value.
sixty_four_bit_pointer: SixtyFourBitPointer
A *mut c_void
which preserves pointer provenance, extended to be
64-bit so that if we read the value as a u64
union field, we don’t
get uninitialized memory.
Implementations§
Trait Implementations§
source§impl PartialEq for EventData
impl PartialEq for EventData
impl Copy for EventData
impl Eq for EventData
Auto Trait Implementations§
impl Freeze for EventData
impl RefUnwindSafe for EventData
impl !Send for EventData
impl !Sync for EventData
impl Unpin for EventData
impl UnwindSafe for EventData
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