pub struct CallContext {
pub caller: Option<String>,
pub target: String,
pub depth: usize,
pub max_depth: usize,
pub trace_id: Option<u128>,
}Expand description
Context for nested module calls.
Fields§
§caller: Option<String>The calling module (if any).
target: StringThe target module.
depth: usizeCurrent call depth.
max_depth: usizeMaximum allowed depth.
trace_id: Option<u128>Trace ID for distributed tracing.
Implementations§
Source§impl CallContext
impl CallContext
Trait Implementations§
Source§impl Clone for CallContext
impl Clone for CallContext
Source§fn clone(&self) -> CallContext
fn clone(&self) -> CallContext
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CallContext
impl RefUnwindSafe for CallContext
impl Send for CallContext
impl Sync for CallContext
impl Unpin for CallContext
impl UnsafeUnpin for CallContext
impl UnwindSafe for CallContext
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