pub struct Trace<'d> { /* private fields */ }
Available on crate feature
unstable
only.Expand description
TRACE Encoder Instance
Implementations§
Source§impl<'d> Trace<'d>
impl<'d> Trace<'d>
Sourcepub fn start_trace(&mut self, buffer: &'d mut [u8])
pub fn start_trace(&mut self, buffer: &'d mut [u8])
Start tracing, writing data into the buffer
Sourcepub fn stop_trace(&mut self) -> Result<TraceResult, Error>
pub fn stop_trace(&mut self) -> Result<TraceResult, Error>
Stop tracing
Be aware that valid data might not start at index 0 and you need to account for wrapping when reading the data.