pub struct KTraceReservation<'a> { /* private fields */ }Expand description
KTraceReservation encapsulates a pending write to the buffer.
Implementations§
Source§impl<'a> KTraceReservation<'a>
impl<'a> KTraceReservation<'a>
Sourcepub fn write_word(&mut self, word: u64) -> Result<(), Status>
pub fn write_word(&mut self, word: u64) -> Result<(), Status>
Writes a single 64-bit word into the reservation.
Sourcepub fn write_bytes(&mut self, bytes: &[u8]) -> Result<(), Status>
pub fn write_bytes(&mut self, bytes: &[u8]) -> Result<(), Status>
Writes a byte slice into the reservation, padding to an 8-byte boundary.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !UnwindSafe for KTraceReservation<'a>
impl<'a> Freeze for KTraceReservation<'a>
impl<'a> RefUnwindSafe for KTraceReservation<'a>
impl<'a> Send for KTraceReservation<'a>
impl<'a> Sync for KTraceReservation<'a>
impl<'a> Unpin for KTraceReservation<'a>
impl<'a> UnsafeUnpin for KTraceReservation<'a>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Init<T> for T
impl<T> Init<T> for T
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more§impl<T> ToMutPtr for Twhere
T: ?Sized,
impl<T> ToMutPtr for Twhere
T: ?Sized,
§fn to_mut_ptr(&self) -> *mut T
fn to_mut_ptr(&self) -> *mut T
Casts the reference to a mutable raw pointer.