pub struct EventUtils;Expand description
Simple event creation utilities
Implementations§
Source§impl EventUtils
impl EventUtils
Sourcepub fn create_pooled_event<const SIZE: usize>(
data: &[u8],
event_type: u32,
) -> Result<PooledEvent<SIZE>, EventCreationError>
pub fn create_pooled_event<const SIZE: usize>( data: &[u8], event_type: u32, ) -> Result<PooledEvent<SIZE>, EventCreationError>
Create pooled event from raw data
Sourcepub fn create_auto_sized_event(
data: &[u8],
event_type: u32,
) -> Result<AutoSizedEvent, EventCreationError>
pub fn create_auto_sized_event( data: &[u8], event_type: u32, ) -> Result<AutoSizedEvent, EventCreationError>
Auto-detect size and create appropriate pooled event
Auto Trait Implementations§
impl Freeze for EventUtils
impl RefUnwindSafe for EventUtils
impl Send for EventUtils
impl Sync for EventUtils
impl Unpin for EventUtils
impl UnsafeUnpin for EventUtils
impl UnwindSafe for EventUtils
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