Struct minidump::MinidumpHandleDataStream
source · pub struct MinidumpHandleDataStream {
pub handles: Vec<MinidumpHandleDescriptor>,
}
Expand description
A stream holding all the system handles at the time the minidump was written. On Linux this is the list of open file descriptors.
Fields§
§handles: Vec<MinidumpHandleDescriptor>
Implementations§
source§impl MinidumpHandleDataStream
impl MinidumpHandleDataStream
sourcepub fn new() -> MinidumpHandleDataStream
pub fn new() -> MinidumpHandleDataStream
Return an empty MinidumpHandleDataStream
.
sourcepub fn from_handles(
handles: Vec<MinidumpHandleDescriptor>,
) -> MinidumpHandleDataStream
pub fn from_handles( handles: Vec<MinidumpHandleDescriptor>, ) -> MinidumpHandleDataStream
Create a MinidumpHandleDataStream
from a list of MinidumpHandleDescriptor
s.
sourcepub fn iter(&self) -> impl Iterator<Item = &MinidumpHandleDescriptor>
pub fn iter(&self) -> impl Iterator<Item = &MinidumpHandleDescriptor>
Iterate over the handles in the order contained in the minidump.
Trait Implementations§
source§impl Clone for MinidumpHandleDataStream
impl Clone for MinidumpHandleDataStream
source§fn clone(&self) -> MinidumpHandleDataStream
fn clone(&self) -> MinidumpHandleDataStream
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 MinidumpHandleDataStream
impl Debug for MinidumpHandleDataStream
source§impl Default for MinidumpHandleDataStream
impl Default for MinidumpHandleDataStream
source§impl<'a> MinidumpStream<'a> for MinidumpHandleDataStream
impl<'a> MinidumpStream<'a> for MinidumpHandleDataStream
source§const STREAM_TYPE: u32 = 12u32
const STREAM_TYPE: u32 = 12u32
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 Freeze for MinidumpHandleDataStream
impl RefUnwindSafe for MinidumpHandleDataStream
impl Send for MinidumpHandleDataStream
impl Sync for MinidumpHandleDataStream
impl Unpin for MinidumpHandleDataStream
impl UnwindSafe for MinidumpHandleDataStream
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)