#[repr(C)]pub struct Message {
pub msg_type: MessageType,
pub _pad: u32,
pub msg_payload: MessagePayload,
}
Fields§
§msg_type: MessageType
§_pad: u32
§msg_payload: MessagePayload
Implementations§
Trait Implementations§
Source§impl CheckedBitPattern for Message
impl CheckedBitPattern for Message
Source§type Bits = MessageBits
type Bits = MessageBits
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.Source§fn is_valid_bit_pattern(bits: &MessageBits) -> bool
fn is_valid_bit_pattern(bits: &MessageBits) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.impl Copy for Message
impl NoUninit for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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