pub struct EventDataDescriptor<'a> { /* private fields */ }Implementations§
Source§impl<'a> EventDataDescriptor<'a>
impl<'a> EventDataDescriptor<'a>
Sourcepub unsafe fn new(ptr: u64, size: u32) -> Self
pub unsafe fn new(ptr: u64, size: u32) -> Self
Creates a descriptor over a raw memory region.
§Safety
If size is nonzero, ptr must point to a readable memory region of at least size
bytes. That region must remain allocated and readable for the entire lifetime 'a, and it
must not be mutated in a way that races with an event write using this descriptor.
Trait Implementations§
Source§impl<'a> Default for EventDataDescriptor<'a>
impl<'a> Default for EventDataDescriptor<'a>
Source§fn default() -> EventDataDescriptor<'a>
fn default() -> EventDataDescriptor<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for EventDataDescriptor<'a>
impl<'a> RefUnwindSafe for EventDataDescriptor<'a>
impl<'a> Send for EventDataDescriptor<'a>
impl<'a> Sync for EventDataDescriptor<'a>
impl<'a> Unpin for EventDataDescriptor<'a>
impl<'a> UnsafeUnpin for EventDataDescriptor<'a>
impl<'a> UnwindSafe for EventDataDescriptor<'a>
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