#[repr(C)]pub struct mbox_t {
pub readers: list_node_t,
pub writers: list_node_t,
pub cib: cib_t,
pub msg_array: *mut msg_t,
}
Expand description
@brief Mailbox struct definition
Fields§
§readers: list_node_t
< list of threads waiting for message
writers: list_node_t
< list of threads waiting to send
cib: cib_t
< cib for msg array
msg_array: *mut msg_t
< ptr to array of msg queue
Trait Implementations§
impl Copy for mbox_t
Auto Trait Implementations§
impl Freeze for mbox_t
impl RefUnwindSafe for mbox_t
impl !Send for mbox_t
impl !Sync for mbox_t
impl Unpin for mbox_t
impl UnwindSafe for mbox_t
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
)Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes