pub struct CausalParent { /* private fields */ }Expand description
Portable causal parent captured from a runtime’s current span context.
The token is plain data: pass it across crate, thread, or spawn boundaries
and attach it with span_with_parent or instrument_future_with_parent
where thread-local propagation cannot reach. A token only applies inside
the runtime it was captured from; elsewhere the span records as a root.
Implementations§
Source§impl CausalParent
impl CausalParent
Trait Implementations§
Source§impl Clone for CausalParent
impl Clone for CausalParent
Source§fn clone(&self) -> CausalParent
fn clone(&self) -> CausalParent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CausalParent
Source§impl Debug for CausalParent
impl Debug for CausalParent
impl Eq for CausalParent
Source§impl PartialEq for CausalParent
impl PartialEq for CausalParent
impl StructuralPartialEq for CausalParent
Auto Trait Implementations§
impl Freeze for CausalParent
impl RefUnwindSafe for CausalParent
impl Send for CausalParent
impl Sync for CausalParent
impl Unpin for CausalParent
impl UnsafeUnpin for CausalParent
impl UnwindSafe for CausalParent
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