pub struct Parser<'data> { /* private fields */ }
Expand description
Responsible for parsing logs from the elf.
Implementations§
Source§impl<'data> Parser<'data>
impl<'data> Parser<'data>
Sourcepub fn get_log_metadata(&self, id: usize) -> Result<Metadata>
pub fn get_log_metadata(&self, id: usize) -> Result<Metadata>
Returns a specific log’s metadata.
Sourcepub fn get_log_args_type(&self, metadata: &Metadata) -> Result<Option<Type>>
pub fn get_log_args_type(&self, metadata: &Metadata) -> Result<Option<Type>>
Returns the type of the log’s arguments. Return:
- Ok(Some(_)) => The type of the arguments.
- Ok(None) => Unable to find the type in the elf’s dwarf section.
- Err(_) => Encountered some error while parsing the dwarf.
pub fn build_id(&self) -> &'data [u8] ⓘ
pub fn address_size(&self) -> AddressSize
pub fn endian(&self) -> RunTimeEndian
Auto Trait Implementations§
impl<'data> Freeze for Parser<'data>
impl<'data> RefUnwindSafe for Parser<'data>
impl<'data> Send for Parser<'data>
impl<'data> Sync for Parser<'data>
impl<'data> Unpin for Parser<'data>
impl<'data> UnwindSafe for Parser<'data>
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