pub struct ConsumerAndMetadata<'a> {
pub consumer: Consumer<'a>,
pub recovered_logs_len: usize,
}Expand description
Holds the log reader and some additional information from initialization.
Fields§
§consumer: Consumer<'a>Reads logs from the buffer.
recovered_logs_len: usizeNumber of bytes that were not from the current run.
If the recovered logs were produced by a different firmware, different decoders need to be used. This field helps identify the data that was definitely produced by the current firmware.
Auto Trait Implementations§
impl<'a> Freeze for ConsumerAndMetadata<'a>
impl<'a> !RefUnwindSafe for ConsumerAndMetadata<'a>
impl<'a> Send for ConsumerAndMetadata<'a>
impl<'a> !Sync for ConsumerAndMetadata<'a>
impl<'a> Unpin for ConsumerAndMetadata<'a>
impl<'a> !UnwindSafe for ConsumerAndMetadata<'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