#[non_exhaustive]pub struct TraceMeta {
pub root_addr: Option<*const c_void>,
pub trace_leaf_addr: *const c_void,
}Available on
tokio_unstable and crate feature taskdump and crate feature rt and Linux and (AArch64 or x86 or x86-64) only.Expand description
Metadata passed into the trace_leaf callback for trace_with
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.root_addr: Option<*const c_void>The root boundary address set by Root::poll if any.
When using unwinding the stack, this is the address at which
stack walking should stop. It corresponds to the Root::poll function pointer.
trace_leaf_addr: *const c_voidThe address of the internal trace_leaf function that triggered this callback.
When capturing a backtrace, use this as the lower bound — frames at or below this address are internal implementation details and should be excluded.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TraceMeta
impl RefUnwindSafe for TraceMeta
impl !Send for TraceMeta
impl !Sync for TraceMeta
impl Unpin for TraceMeta
impl UnsafeUnpin for TraceMeta
impl UnwindSafe for TraceMeta
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