pub struct Span { /* private fields */ }Expand description
A no-op replacement for a rustracing Span.
Implementations§
Source§impl Span
impl Span
Sourcepub fn handle(&self) -> SpanHandle
pub fn handle(&self) -> SpanHandle
Return a no-op handle.
Sourcepub fn child<F>(&self, _name: &'static str, _f: F) -> Spanwhere
F: FnOnce(SpanOptionsPlaceholder) -> SpanOptionsPlaceholder,
pub fn child<F>(&self, _name: &'static str, _f: F) -> Spanwhere
F: FnOnce(SpanOptionsPlaceholder) -> SpanOptionsPlaceholder,
No-op: create a child span.
No-op: set multiple tags via a closure.
Sourcepub fn set_finish_time<F: Fn() -> SystemTime>(&self, _f: F)
pub fn set_finish_time<F: Fn() -> SystemTime>(&self, _f: F)
No-op: set a finish time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Span
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