Struct minidump::MinidumpThreadList
source · [−]pub struct MinidumpThreadList<'a> {
pub threads: Vec<MinidumpThread<'a>>,
/* private fields */
}
Expand description
A list of MinidumpThread
s contained in a Minidump
.
Fields
threads: Vec<MinidumpThread<'a>>
The threads, in the order they were present in the Minidump
.
Implementations
sourceimpl<'a> MinidumpThreadList<'a>
impl<'a> MinidumpThreadList<'a>
sourcepub fn get_thread(&self, id: u32) -> Option<&MinidumpThread<'a>>
pub fn get_thread(&self, id: u32) -> Option<&MinidumpThread<'a>>
Get the thread with id id
from this thread list if it exists.
sourcepub fn print<T: Write>(
&self,
f: &mut T,
memory: Option<&MinidumpMemoryList<'a>>,
system: Option<&MinidumpSystemInfo>,
misc: Option<&MinidumpMiscInfo>,
brief: bool
) -> Result<()>
pub fn print<T: Write>(
&self,
f: &mut T,
memory: Option<&MinidumpMemoryList<'a>>,
system: Option<&MinidumpSystemInfo>,
misc: Option<&MinidumpMiscInfo>,
brief: bool
) -> Result<()>
Write a human-readable description of this MinidumpThreadList
to f
.
This is very verbose, it is the format used by minidump_dump
.
Trait Implementations
sourceimpl<'a> Debug for MinidumpThreadList<'a>
impl<'a> Debug for MinidumpThreadList<'a>
sourceimpl<'a> MinidumpStream<'a> for MinidumpThreadList<'a>
impl<'a> MinidumpStream<'a> for MinidumpThreadList<'a>
sourceconst STREAM_TYPE: u32 = 3u32
const STREAM_TYPE: u32 = 3u32
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. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for MinidumpThreadList<'a>
impl<'a> Send for MinidumpThreadList<'a>
impl<'a> Sync for MinidumpThreadList<'a>
impl<'a> Unpin for MinidumpThreadList<'a>
impl<'a> UnwindSafe for MinidumpThreadList<'a>
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