Struct minidump::MinidumpModuleList
source · pub struct MinidumpModuleList { /* private fields */ }
Expand description
A list of MinidumpModule
s contained in a Minidump
.
Implementations§
source§impl MinidumpModuleList
impl MinidumpModuleList
sourcepub fn new() -> MinidumpModuleList
pub fn new() -> MinidumpModuleList
Return an empty MinidumpModuleList
.
sourcepub fn from_modules(modules: Vec<MinidumpModule>) -> MinidumpModuleList
pub fn from_modules(modules: Vec<MinidumpModule>) -> MinidumpModuleList
Create a MinidumpModuleList
from a list of MinidumpModule
s.
sourcepub fn main_module(&self) -> Option<&MinidumpModule>
pub fn main_module(&self) -> Option<&MinidumpModule>
Returns the module corresponding to the main executable.
sourcepub fn module_at_address(&self, address: u64) -> Option<&MinidumpModule>
pub fn module_at_address(&self, address: u64) -> Option<&MinidumpModule>
Return a MinidumpModule
whose address range covers address
.
sourcepub fn iter(&self) -> impl Iterator<Item = &MinidumpModule>
pub fn iter(&self) -> impl Iterator<Item = &MinidumpModule>
Iterate over the modules in arbitrary order.
sourcepub fn by_addr(&self) -> impl DoubleEndedIterator<Item = &MinidumpModule>
pub fn by_addr(&self) -> impl DoubleEndedIterator<Item = &MinidumpModule>
Iterate over the modules in order by memory address.
Trait Implementations§
source§impl Clone for MinidumpModuleList
impl Clone for MinidumpModuleList
source§fn clone(&self) -> MinidumpModuleList
fn clone(&self) -> MinidumpModuleList
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MinidumpModuleList
impl Debug for MinidumpModuleList
source§impl Default for MinidumpModuleList
impl Default for MinidumpModuleList
source§impl<'a> MinidumpStream<'a> for MinidumpModuleList
impl<'a> MinidumpStream<'a> for MinidumpModuleList
source§const STREAM_TYPE: u32 = 4u32
const STREAM_TYPE: u32 = 4u32
The stream type constant used in the
md::MDRawDirectory
entry.
This is usually a MINIDUMP_STREAM_TYPE but it’s left as a u32
to allow external projects to add support for their own custom streams.Auto Trait Implementations§
impl RefUnwindSafe for MinidumpModuleList
impl Send for MinidumpModuleList
impl Sync for MinidumpModuleList
impl Unpin for MinidumpModuleList
impl UnwindSafe for MinidumpModuleList
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