Struct minidump::MinidumpMemoryListBase
source · [−]pub struct MinidumpMemoryListBase<'a, Descriptor> { /* private fields */ }
Expand description
A list of memory regions included in a minidump. This is the underlying generic type for MinidumpMemoryList and MinidumpMemory64List.
Implementations
sourceimpl<'mdmp, Descriptor> MinidumpMemoryListBase<'mdmp, Descriptor>
impl<'mdmp, Descriptor> MinidumpMemoryListBase<'mdmp, Descriptor>
sourcepub fn new() -> MinidumpMemoryListBase<'mdmp, Descriptor>
pub fn new() -> MinidumpMemoryListBase<'mdmp, Descriptor>
Return an empty MinidumpMemoryListBase
.
sourcepub fn from_regions(
regions: Vec<MinidumpMemoryBase<'mdmp, Descriptor>>
) -> MinidumpMemoryListBase<'mdmp, Descriptor>
pub fn from_regions(
regions: Vec<MinidumpMemoryBase<'mdmp, Descriptor>>
) -> MinidumpMemoryListBase<'mdmp, Descriptor>
Create a MinidumpMemoryListBase
from a list of MinidumpMemoryBase
s.
sourcepub fn memory_at_address(
&self,
address: u64
) -> Option<&MinidumpMemoryBase<'mdmp, Descriptor>>
pub fn memory_at_address(
&self,
address: u64
) -> Option<&MinidumpMemoryBase<'mdmp, Descriptor>>
Return a MinidumpMemoryBase
containing memory at address
, if one exists.
sourcepub fn iter<'slf>(
&'slf self
) -> impl Iterator<Item = &'slf MinidumpMemoryBase<'mdmp, Descriptor>>
pub fn iter<'slf>(
&'slf self
) -> impl Iterator<Item = &'slf MinidumpMemoryBase<'mdmp, Descriptor>>
Iterate over the memory regions in the order contained in the minidump.
The iterator returns items of MinidumpMemoryBase as &'slf MinidumpMemoryBase<'mdmp, Descriptor>
.
That is the lifetime of the item is bound to the lifetime of the iterator itself
('slf
), while the slice inside MinidumpMemoryBase pointing at the memory itself has
the lifetime of the Minidump struct (’mdmp).
sourcepub fn by_addr<'slf>(
&'slf self
) -> impl Iterator<Item = &'slf MinidumpMemoryBase<'mdmp, Descriptor>>
pub fn by_addr<'slf>(
&'slf self
) -> impl Iterator<Item = &'slf MinidumpMemoryBase<'mdmp, Descriptor>>
Iterate over the memory regions in order by memory address.
sourceimpl<'mdmp> MinidumpMemoryListBase<'a, MINIDUMP_MEMORY_DESCRIPTOR>
impl<'mdmp> MinidumpMemoryListBase<'a, MINIDUMP_MEMORY_DESCRIPTOR>
sourceimpl<'mdmp> MinidumpMemoryListBase<'a, MINIDUMP_MEMORY_DESCRIPTOR64>
impl<'mdmp> MinidumpMemoryListBase<'a, MINIDUMP_MEMORY_DESCRIPTOR64>
Trait Implementations
sourceimpl<'a, Descriptor: Debug> Debug for MinidumpMemoryListBase<'a, Descriptor>
impl<'a, Descriptor: Debug> Debug for MinidumpMemoryListBase<'a, Descriptor>
Auto Trait Implementations
impl<'a, Descriptor> RefUnwindSafe for MinidumpMemoryListBase<'a, Descriptor> where
Descriptor: RefUnwindSafe,
impl<'a, Descriptor> Send for MinidumpMemoryListBase<'a, Descriptor> where
Descriptor: Send,
impl<'a, Descriptor> Sync for MinidumpMemoryListBase<'a, Descriptor> where
Descriptor: Sync,
impl<'a, Descriptor> Unpin for MinidumpMemoryListBase<'a, Descriptor> where
Descriptor: Unpin,
impl<'a, Descriptor> UnwindSafe for MinidumpMemoryListBase<'a, Descriptor> where
Descriptor: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more