#[repr(C)]pub struct AsyncEvent {
pub sender: ObjID,
pub flags: AsyncEventFlags,
pub message: u32,
pub aux: [u64; 7],
}
Expand description
Basic structure of an async event sent to a thread queue.
Fields§
§sender: ObjID
The sender thread’s control ID, or 0 for kernel.
flags: AsyncEventFlags
Flags for this event.
message: u32
API-specific message.
aux: [u64; 7]
API-specific data.
Implementations§
source§impl AsyncEvent
impl AsyncEvent
Trait Implementations§
source§impl Clone for AsyncEvent
impl Clone for AsyncEvent
source§fn clone(&self) -> AsyncEvent
fn clone(&self) -> AsyncEvent
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 AsyncEvent
impl Debug for AsyncEvent
source§impl Hash for AsyncEvent
impl Hash for AsyncEvent
source§impl Ord for AsyncEvent
impl Ord for AsyncEvent
source§fn cmp(&self, other: &AsyncEvent) -> Ordering
fn cmp(&self, other: &AsyncEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for AsyncEvent
impl PartialEq for AsyncEvent
source§impl PartialOrd for AsyncEvent
impl PartialOrd for AsyncEvent
impl Copy for AsyncEvent
impl Eq for AsyncEvent
impl StructuralPartialEq for AsyncEvent
Auto Trait Implementations§
impl Freeze for AsyncEvent
impl ObjSafe for AsyncEvent
impl RefUnwindSafe for AsyncEvent
impl Send for AsyncEvent
impl Sync for AsyncEvent
impl Unpin for AsyncEvent
impl UnwindSafe for AsyncEvent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.