Struct gimli::read::UnwindContext
source · [−]pub struct UnwindContext<R: Reader, A: UnwindContextStorage<R> = StoreOnHeap> { /* private fields */ }
Expand description
Common context needed when evaluating the call frame unwinding information.
This structure can be large so it is advisable to place it on the heap. To avoid re-allocating the context multiple times when evaluating multiple CFI programs, it can be reused.
use gimli::{UnwindContext, UnwindTable};
// An uninitialized context.
let mut ctx = Box::new(UnwindContext::new());
// Initialize the context by evaluating the CIE's initial instruction program,
// and generate the unwind table.
let mut table = some_fde.rows(&eh_frame, &bases, &mut ctx)?;
while let Some(row) = table.next_row()? {
// Do stuff with each row...
}
Implementations
sourceimpl<R: Reader> UnwindContext<R>
impl<R: Reader> UnwindContext<R>
sourceimpl<R: Reader, A: UnwindContextStorage<R>> UnwindContext<R, A>
impl<R: Reader, A: UnwindContextStorage<R>> UnwindContext<R, A>
Signal Safe Methods
These methods are guaranteed not to allocate, acquire locks, or perform any other signal-unsafe operations, if an non-allocating storage is used.
Trait Implementations
sourceimpl<R: Clone + Reader, A: Clone + UnwindContextStorage<R>> Clone for UnwindContext<R, A> where
A::Stack: Clone,
impl<R: Clone + Reader, A: Clone + UnwindContextStorage<R>> Clone for UnwindContext<R, A> where
A::Stack: Clone,
sourcefn clone(&self) -> UnwindContext<R, A>
fn clone(&self) -> UnwindContext<R, A>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<R: Reader, S: UnwindContextStorage<R>> Debug for UnwindContext<R, S>
impl<R: Reader, S: UnwindContextStorage<R>> Debug for UnwindContext<R, S>
sourceimpl<R: Reader, A: UnwindContextStorage<R>> Default for UnwindContext<R, A>
impl<R: Reader, A: UnwindContextStorage<R>> Default for UnwindContext<R, A>
sourceimpl<R: PartialEq + Reader, A: PartialEq + UnwindContextStorage<R>> PartialEq<UnwindContext<R, A>> for UnwindContext<R, A> where
A::Stack: PartialEq,
impl<R: PartialEq + Reader, A: PartialEq + UnwindContextStorage<R>> PartialEq<UnwindContext<R, A>> for UnwindContext<R, A> where
A::Stack: PartialEq,
sourcefn eq(&self, other: &UnwindContext<R, A>) -> bool
fn eq(&self, other: &UnwindContext<R, A>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UnwindContext<R, A>) -> bool
fn ne(&self, other: &UnwindContext<R, A>) -> bool
This method tests for !=
.
impl<R: Eq + Reader, A: Eq + UnwindContextStorage<R>> Eq for UnwindContext<R, A> where
A::Stack: Eq,
impl<R: Reader, A: UnwindContextStorage<R>> StructuralEq for UnwindContext<R, A>
impl<R: Reader, A: UnwindContextStorage<R>> StructuralPartialEq for UnwindContext<R, A>
Auto Trait Implementations
impl<R, A> RefUnwindSafe for UnwindContext<R, A> where
R: RefUnwindSafe,
<<A as UnwindContextStorage<R>>::Stack as Sealed>::Storage: RefUnwindSafe,
impl<R, A> Send for UnwindContext<R, A> where
R: Send,
<<A as UnwindContextStorage<R>>::Stack as Sealed>::Storage: Send,
impl<R, A> Sync for UnwindContext<R, A> where
R: Sync,
<<A as UnwindContextStorage<R>>::Stack as Sealed>::Storage: Sync,
impl<R, A> Unpin for UnwindContext<R, A> where
R: Unpin,
<<A as UnwindContextStorage<R>>::Stack as Sealed>::Storage: Unpin,
impl<R, A> UnwindSafe for UnwindContext<R, A> where
R: UnwindSafe,
<<A as UnwindContextStorage<R>>::Stack as Sealed>::Storage: UnwindSafe,
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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more