Struct libunwind_rs::Cursor[][src]

pub struct Cursor(_);

Implementations

impl Cursor[src]

pub fn coredump(
    address_space: &mut AddressSpace,
    state: &CoredumpState
) -> Result<Cursor, Error>
[src]

Method constructs cursor for coredump unwinding.

Arguments

  • address_space - configured AddressSpace

  • state - Configured CoredumpState

pub fn local<F, T>(f: F) -> Result<T, Error> where
    F: FnOnce(Cursor) -> Result<T, Error>, 
[src]

Method constructs cursor for local unwinding.

Arguments

  • f - function to work with local cursor

pub fn step(&mut self) -> Result<bool, Error>[src]

Method executes step on cursor.

Return

  • true - if step is executed

  • false - if cursor ends

  • Error - if error while steping is occured

pub fn register(&mut self, id: i32) -> Result<usize, Error>[src]

Method returns register value

Arguments

  • id - register's identifier

pub fn ip(&mut self) -> Result<usize, Error>[src]

Method returns instructions pointer value

pub fn sp(&mut self) -> Result<usize, Error>[src]

Method returns stack pointer value

pub fn proc_info(&mut self) -> Result<ProcInfo, Error>[src]

Method returns procedure information at crurrent stack frame

pub fn proc_name(&mut self) -> Result<String, Error>[src]

Method returns procedure information at crurrent stack frame

pub fn is_signal_frame(&mut self) -> Result<bool, Error>[src]

Method returns true if frame is signal frame

Trait Implementations

impl Clone for Cursor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.