pub struct Parser<'elf> { /* private fields */ }
Expand description
Responsible for parsing logs from the elf.
Implementations§
Source§impl<'elf> Parser<'elf>
impl<'elf> Parser<'elf>
Sourcepub fn get_log_metadata(&self, id: usize) -> Result<Metadata<'elf>>
pub fn get_log_metadata(&self, id: usize) -> Result<Metadata<'elf>>
Returns a specific log’s metadata.
Sourcepub fn iter_logs<'parser>(&'parser self) -> LogIterator<'parser, 'elf> ⓘ
pub fn iter_logs<'parser>(&'parser self) -> LogIterator<'parser, 'elf> ⓘ
Returns an iterator over all of the log’s metadata/type information.
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) -> &'elf [u8] ⓘ
pub fn address_size(&self) -> AddressSize
pub fn endian(&self) -> RunTimeEndian
Auto Trait Implementations§
impl<'elf> Freeze for Parser<'elf>
impl<'elf> RefUnwindSafe for Parser<'elf>
impl<'elf> Send for Parser<'elf>
impl<'elf> Sync for Parser<'elf>
impl<'elf> Unpin for Parser<'elf>
impl<'elf> UnwindSafe for Parser<'elf>
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