#[repr(C)]pub struct SmallMessage {
pub capability: u64,
pub opcode: u32,
pub flags: u32,
pub data: [u64; 4],
}Expand description
Small message for register-based transfers (≤64 bytes)
This structure is optimized for fast register-based IPC where the entire message can be passed in CPU registers without memory access.
Fields§
§capability: u64Capability token for the operation
opcode: u32Message type/operation code
flags: u32Message flags
data: [u64; 4]Payload (up to 4 registers)
Implementations§
Source§impl SmallMessage
impl SmallMessage
Sourcepub fn with_flags(self, flags: u32) -> Self
pub fn with_flags(self, flags: u32) -> Self
Set message flags
Trait Implementations§
Source§impl Clone for SmallMessage
impl Clone for SmallMessage
Source§fn clone(&self) -> SmallMessage
fn clone(&self) -> SmallMessage
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmallMessage
impl Debug for SmallMessage
Source§impl PartialEq for SmallMessage
impl PartialEq for SmallMessage
impl Copy for SmallMessage
impl Eq for SmallMessage
impl StructuralPartialEq for SmallMessage
Auto Trait Implementations§
impl Freeze for SmallMessage
impl RefUnwindSafe for SmallMessage
impl Send for SmallMessage
impl Sync for SmallMessage
impl Unpin for SmallMessage
impl UnwindSafe for SmallMessage
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)