Struct std::backtrace_rs::dbghelp::Dbghelp
source · pub struct Dbghelp {Show 13 fields
dll: *mut c_void,
SymGetOptions: usize,
SymSetOptions: usize,
SymInitializeW: usize,
SymCleanup: usize,
StackWalk64: usize,
SymFunctionTableAccess64: usize,
SymGetModuleBase64: usize,
SymFromAddrW: usize,
SymGetLineFromAddrW64: usize,
StackWalkEx: usize,
SymFromInlineContextW: usize,
SymGetLineFromInlineContextW: usize,
}
Fields§
§dll: *mut c_void
The loaded DLL for dbghelp.dll
SymGetOptions: usize
§SymSetOptions: usize
§SymInitializeW: usize
§SymCleanup: usize
§StackWalk64: usize
§SymFunctionTableAccess64: usize
§SymGetModuleBase64: usize
§SymFromAddrW: usize
§SymGetLineFromAddrW64: usize
§StackWalkEx: usize
§SymFromInlineContextW: usize
§SymGetLineFromInlineContextW: usize
Implementations§
source§impl Dbghelp
impl Dbghelp
sourcefn ensure_open(&mut self) -> Result<(), ()>
fn ensure_open(&mut self) -> Result<(), ()>
Attempts to open dbghelp.dll
. Returns success if it works or
error if LoadLibraryW
fails.
Panics if library is already loaded.
pub fn SymGetOptions(&mut self) -> Option<unsafe extern "system" fn() -> u32>
pub fn SymSetOptions( &mut self ) -> Option<unsafe extern "system" fn(_: u32) -> u32>
pub fn SymInitializeW( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: *const u16, _: i32) -> i32>
pub fn SymCleanup( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void) -> i32>
pub fn StackWalk64( &mut self ) -> Option<unsafe extern "system" fn(_: u32, _: *mut c_void, _: *mut c_void, _: *mut STACKFRAME64, _: *mut c_void, _: Option<unsafe extern "system" fn(hProcess: *mut c_void, qwBaseAddress: u64, lpBuffer: *mut c_void, nSize: u32, lpNumberOfBytesRead: *mut u32) -> i32>, _: Option<unsafe extern "system" fn(ahProcess: *mut c_void, AddrBase: u64) -> *mut c_void>, _: Option<unsafe extern "system" fn(hProcess: *mut c_void, Address: u64) -> u64>, _: Option<unsafe extern "system" fn(hProcess: *mut c_void, hThread: *mut c_void, lpaddr: *mut ADDRESS64) -> u64>) -> i32>
pub fn SymFunctionTableAccess64( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: u64) -> *mut c_void>
pub fn SymGetModuleBase64( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: u64) -> u64>
pub fn SymFromAddrW( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: u64, _: *mut u64, _: *mut SYMBOL_INFOW) -> i32>
pub fn SymGetLineFromAddrW64( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: u64, _: *mut u32, _: *mut IMAGEHLP_LINEW64) -> i32>
pub fn StackWalkEx( &mut self ) -> Option<unsafe extern "system" fn(_: u32, _: *mut c_void, _: *mut c_void, _: *mut STACKFRAME_EX, _: *mut c_void, _: Option<unsafe extern "system" fn(hProcess: *mut c_void, qwBaseAddress: u64, lpBuffer: *mut c_void, nSize: u32, lpNumberOfBytesRead: *mut u32) -> i32>, _: Option<unsafe extern "system" fn(ahProcess: *mut c_void, AddrBase: u64) -> *mut c_void>, _: Option<unsafe extern "system" fn(hProcess: *mut c_void, Address: u64) -> u64>, _: Option<unsafe extern "system" fn(hProcess: *mut c_void, hThread: *mut c_void, lpaddr: *mut ADDRESS64) -> u64>, _: u32) -> i32>
pub fn SymFromInlineContextW( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: u64, _: u32, _: *mut u64, _: *mut SYMBOL_INFOW) -> i32>
pub fn SymGetLineFromInlineContextW( &mut self ) -> Option<unsafe extern "system" fn(_: *mut c_void, _: u64, _: u32, _: u64, _: *mut u32, _: *mut IMAGEHLP_LINEW64) -> i32>
fn symbol(&self, symbol: &[u8]) -> Option<usize>
Auto Trait Implementations§
impl RefUnwindSafe for Dbghelp
impl !Send for Dbghelp
impl !Sync for Dbghelp
impl Unpin for Dbghelp
impl UnwindSafe for Dbghelp
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