pub struct CallSite {
pub node: NodeId,
pub function: &'static str,
pub frame_id: u64,
pub source: Option<SourceLocation>,
}Expand description
One call edge that was observed while a CallTrace frame was active.
CallTrace 中实际观察到的一条调用边。
Fields§
§node: NodeIdRegistry node the active frame belongs to. 当前活动帧所属的注册机节点。
function: &'static strLogical function name active in that frame. 该帧中处于活动状态的逻辑函数名。
frame_id: u64Identifier of the trace frame that observed this call, unique per invocation. 观察到本次调用的追踪帧编号,每次调用实例都不同。
source: Option<SourceLocation>Stable declaration/callsite location. None is reserved for callers
that construct a synthetic frame directly.
稳定的声明/调用位置;None 仅保留给直接构造合成帧的调用者。
Trait Implementations§
impl Eq for CallSite
impl StructuralPartialEq for CallSite
Auto Trait Implementations§
impl Freeze for CallSite
impl RefUnwindSafe for CallSite
impl Send for CallSite
impl Sync for CallSite
impl Unpin for CallSite
impl UnsafeUnpin for CallSite
impl UnwindSafe for CallSite
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