#[repr(C)]pub struct k_mbox_msg {
pub size: usize,
pub info: u32,
pub tx_data: *mut c_void,
pub rx_source_thread: *mut k_thread,
pub tx_target_thread: *mut k_thread,
pub _syncing_thread: *mut k_thread,
pub _async_sem: *mut k_sem,
}
Expand description
@brief Mailbox Message Structure
Fields§
§size: usize
size of message (in bytes)
info: u32
application-defined information value
tx_data: *mut c_void
sender’s message data buffer
rx_source_thread: *mut k_thread
source thread id
tx_target_thread: *mut k_thread
target thread id
_syncing_thread: *mut k_thread
internal use only - thread waiting on send (may be a dummy)
_async_sem: *mut k_sem
internal use only - semaphore used during asynchronous send
Trait Implementations§
Auto Trait Implementations§
impl Freeze for k_mbox_msg
impl RefUnwindSafe for k_mbox_msg
impl !Send for k_mbox_msg
impl !Sync for k_mbox_msg
impl Unpin for k_mbox_msg
impl UnwindSafe for k_mbox_msg
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