pub struct TimestampDecoder { /* private fields */ }Expand description
Converts the serialized timestamps of a trace stream back into absolute timestamps. Every
row has to be passed to TimestampDecoder::decode in stream order. See “Timestamps” in the
docs of TraceRow.
Implementations§
Source§impl TimestampDecoder
impl TimestampDecoder
Sourcepub fn decode<'a>(
&mut self,
row: TraceRow<'a>,
) -> Result<TraceRow<'a, u64>, TimestampDecodeError>
pub fn decode<'a>( &mut self, row: TraceRow<'a>, ) -> Result<TraceRow<'a, u64>, TimestampDecodeError>
Converts row from its serialized form into the form with absolute timestamps.
TraceRow::TimestampBase rows update the state and are kept.
Trait Implementations§
Source§impl Clone for TimestampDecoder
impl Clone for TimestampDecoder
impl Copy for TimestampDecoder
Source§impl Debug for TimestampDecoder
impl Debug for TimestampDecoder
Auto Trait Implementations§
impl Freeze for TimestampDecoder
impl RefUnwindSafe for TimestampDecoder
impl Send for TimestampDecoder
impl Sync for TimestampDecoder
impl Unpin for TimestampDecoder
impl UnsafeUnpin for TimestampDecoder
impl UnwindSafe for TimestampDecoder
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