pub struct SpanRef { /* private fields */ }Implementations§
Source§impl SpanRef
impl SpanRef
pub fn disabled() -> Self
pub fn remote(span_context: SpanContext) -> Self
pub fn as_ancestor(&self) -> Self
pub fn as_recording_self_or_ancestor(&self) -> Option<RecordingSpanContext>
pub fn as_recording_self(&self) -> Option<RecordingSpanContext>
pub fn is_recording_self_or_ancestor(&self) -> bool
pub fn is_recording_self(&self) -> bool
pub fn span_context(&self) -> Option<SpanContext>
pub fn tracing_context(&self) -> Option<&Arc<TracingContext>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpanRef
impl !RefUnwindSafe for SpanRef
impl Send for SpanRef
impl Sync for SpanRef
impl Unpin for SpanRef
impl !UnwindSafe for SpanRef
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