#[repr(C)]pub struct MsrtPollEvent {
pub kind: u32,
pub len: usize,
pub bytes: [u8; 256],
pub attempts: u8,
pub packet_type: u8,
pub message_id: u32,
pub failure_reason: u32,
}Expand description
C-compatible poll event.
Fields§
§kind: u32Event kind: one of MSRT_POLL_*.
len: usizeNumber of valid bytes in bytes.
bytes: [u8; 256]Event byte storage for transmit bytes or received messages.
attempts: u8Send attempt count for transmit events.
packet_type: u8Packet type from MSRT for message or send-failed events.
message_id: u32Message identifier for message or send-failed events.
failure_reason: u32Failure reason for send-failed events.
Trait Implementations§
Source§impl Clone for MsrtPollEvent
impl Clone for MsrtPollEvent
Source§fn clone(&self) -> MsrtPollEvent
fn clone(&self) -> MsrtPollEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MsrtPollEvent
Auto Trait Implementations§
impl Freeze for MsrtPollEvent
impl RefUnwindSafe for MsrtPollEvent
impl Send for MsrtPollEvent
impl Sync for MsrtPollEvent
impl Unpin for MsrtPollEvent
impl UnsafeUnpin for MsrtPollEvent
impl UnwindSafe for MsrtPollEvent
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