pub struct ElfCoreProvider { /* private fields */ }Expand description
Physical memory provider backed by an ELF core dump.
Implementations§
Source§impl ElfCoreProvider
impl ElfCoreProvider
Sourcepub fn from_bytes(data: Vec<u8>) -> Result<Self>
pub fn from_bytes(data: Vec<u8>) -> Result<Self>
Parse an ELF core dump from a byte slice.
Trait Implementations§
Source§impl PhysicalMemoryProvider for ElfCoreProvider
impl PhysicalMemoryProvider for ElfCoreProvider
Source§fn read_phys(&self, addr: u64, buf: &mut [u8]) -> Result<usize>
fn read_phys(&self, addr: u64, buf: &mut [u8]) -> Result<usize>
Read up to
buf.len() bytes starting at physical address addr.
Returns the number of bytes actually read (may be less if crossing a gap).Source§fn ranges(&self) -> &[PhysicalRange]
fn ranges(&self) -> &[PhysicalRange]
Return all valid physical address ranges in the dump.
Source§fn format_name(&self) -> &str
fn format_name(&self) -> &str
Human-readable format name (e.g., “LiME”, “AVML v2”).
Source§fn total_size(&self) -> u64
fn total_size(&self) -> u64
Total physical memory size (sum of all range lengths).
Source§fn metadata(&self) -> Option<DumpMetadata>
fn metadata(&self) -> Option<DumpMetadata>
Optional metadata extracted from the dump header.
Returns
None for formats that carry no metadata (Raw, LiME, AVML).Auto Trait Implementations§
impl Freeze for ElfCoreProvider
impl RefUnwindSafe for ElfCoreProvider
impl Send for ElfCoreProvider
impl Sync for ElfCoreProvider
impl Unpin for ElfCoreProvider
impl UnsafeUnpin for ElfCoreProvider
impl UnwindSafe for ElfCoreProvider
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