Struct BacktraceFrame
pub struct BacktraceFrame { /* private fields */ }
Available on
tokio_unstable and Linux and crate feature rt and crate feature taskdump and (AArch64 or s390x or x86 or x86-64) only.A backtrace frame.
This struct represents one stack frame in a captured backtrace, similar to backtrace::BacktraceFrame.
Implementations
impl BacktraceFrame
pub fn ip(&self) -> *mut c_void
Return the instruction pointer of this frame.
See the ABI docs for your platform for the exact meaning.
pub fn symbol_address(&self) -> *mut c_void
Returns the starting symbol address of the frame of this function.
pub fn symbols(&self) -> impl Iterator<Item = &BacktraceSymbol>
Return an iterator over the symbols of this backtrace frame.
Due to inlining, it is possible for there to be multiple BacktraceSymbol items relating to a single frame. The first symbol listed is the “innermost function”, whereas the last symbol is the outermost (last caller).
Trait Implementations
impl Clone for BacktraceFrame
fn clone(&self) -> BacktraceFrame
Returns a duplicate of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more
Auto Trait Implementations
impl Freeze for BacktraceFrame
impl RefUnwindSafe for BacktraceFrame
impl Send for BacktraceFrame
impl Sync for BacktraceFrame
impl Unpin for BacktraceFrame
impl UnsafeUnpin for BacktraceFrame
impl UnwindSafe for BacktraceFrame
Blanket Implementations
impl<T> BorrowMut<T> for Twhere T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> CloneToUninit for Twhere T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/runtime/dump/struct.BacktraceFrame.html