pub struct Module<D> { /* private fields */ }
Expand description
Information about a module that is loaded in a process. You might know this under a different name, for example: (Shared) library, binary image, DSO (“Dynamic shared object”)
The unwinder needs to have an up-to-date list of modules so that it can match an absolute address to the right module, and so that it can find that module’s unwind information.
Type arguments:
D
: The type for unwind section data. This allows carrying owned data on the module, e.g.Vec<u8>
. But it could also be a wrapper around mapped memory from a file or a different process, for example. It just needs to provide a slice of bytes via itsDeref
implementation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<D> RefUnwindSafe for Module<D>where
D: RefUnwindSafe,
impl<D> Send for Module<D>
impl<D> Sync for Module<D>
impl<D> Unpin for Module<D>
impl<D> UnwindSafe for Module<D>where
D: RefUnwindSafe,
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