Struct UnifiedLoggerRead
pub struct UnifiedLoggerRead { /* private fields */ }Expand description
A read side of the memory map based unified logger.
Implementations§
§impl MmapUnifiedLoggerRead
impl MmapUnifiedLoggerRead
pub fn new(base_file_path: &Path) -> Result<MmapUnifiedLoggerRead, Error>
pub fn raw_main_header(&self) -> &MainHeader
Trait Implementations§
§impl UnifiedLogRead for MmapUnifiedLoggerRead
impl UnifiedLogRead for MmapUnifiedLoggerRead
§fn raw_read_section(&mut self) -> Result<(SectionHeader, Vec<u8>), CuError>
fn raw_read_section(&mut self) -> Result<(SectionHeader, Vec<u8>), CuError>
Reads the section from the section header pos.
§fn read_next_section_type(
&mut self,
datalogtype: UnifiedLogType,
) -> Result<Option<Vec<u8>>, CuError>
fn read_next_section_type( &mut self, datalogtype: UnifiedLogType, ) -> Result<Option<Vec<u8>>, CuError>
Read through the unified logger until it reaches the UnifiedLogType given in datalogtype.
It will return the byte array of the section if found.
Auto Trait Implementations§
impl Freeze for MmapUnifiedLoggerRead
impl RefUnwindSafe for MmapUnifiedLoggerRead
impl Send for MmapUnifiedLoggerRead
impl Sync for MmapUnifiedLoggerRead
impl Unpin for MmapUnifiedLoggerRead
impl UnwindSafe for MmapUnifiedLoggerRead
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more