Struct breakpad_symbols::SimpleModule
source · pub struct SimpleModule {
pub base_address: Option<u64>,
pub size: Option<u64>,
pub code_file: Option<String>,
pub code_identifier: Option<CodeId>,
pub debug_file: Option<String>,
pub debug_id: Option<DebugId>,
pub version: Option<String>,
}
Expand description
A Module
implementation that holds arbitrary data.
This can be useful for getting symbols for a module when you
have a debug id and filename but not an actual minidump. If you have a
minidump, you should be using MinidumpModule
.
Fields§
§base_address: Option<u64>
§size: Option<u64>
§code_file: Option<String>
§code_identifier: Option<CodeId>
§debug_file: Option<String>
§debug_id: Option<DebugId>
§version: Option<String>
Implementations§
source§impl SimpleModule
impl SimpleModule
sourcepub fn new(debug_file: &str, debug_id: DebugId) -> SimpleModule
pub fn new(debug_file: &str, debug_id: DebugId) -> SimpleModule
Create a SimpleModule
with the given debug_file
and debug_id
.
Uses default
for the remaining fields.
Trait Implementations§
source§impl Default for SimpleModule
impl Default for SimpleModule
source§fn default() -> SimpleModule
fn default() -> SimpleModule
Returns the “default value” for a type. Read more
source§impl Module for SimpleModule
impl Module for SimpleModule
source§fn base_address(&self) -> u64
fn base_address(&self) -> u64
The base address of this code module as it was loaded by the process.
source§fn code_file(&self) -> Cow<'_, str>
fn code_file(&self) -> Cow<'_, str>
The path or file name that the code module was loaded from.
source§fn code_identifier(&self) -> Option<CodeId>
fn code_identifier(&self) -> Option<CodeId>
An identifying string used to discriminate between multiple versions and
builds of the same code module. This may contain a uuid, timestamp,
version number, or any combination of this or other information, in an
implementation-defined format.
source§fn debug_file(&self) -> Option<Cow<'_, str>>
fn debug_file(&self) -> Option<Cow<'_, str>>
The filename containing debugging information associated with the code
module. If debugging information is stored in a file separate from the
code module itself (as is the case when .pdb or .dSYM files are used),
this will be different from code_file. If debugging information is
stored in the code module itself (possibly prior to stripping), this
will be the same as code_file.
source§fn debug_identifier(&self) -> Option<DebugId>
fn debug_identifier(&self) -> Option<DebugId>
An identifying string similar to code_identifier, but identifies a
specific version and build of the associated debug file. This may be
the same as code_identifier when the debug_file and code_file are
identical or when the same identifier is used to identify distinct
debug and code files.
Auto Trait Implementations§
impl RefUnwindSafe for SimpleModule
impl Send for SimpleModule
impl Sync for SimpleModule
impl Unpin for SimpleModule
impl UnwindSafe for SimpleModule
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