pub struct Span { /* private fields */ }
Expand description
A cheaply cloneable span in the await-tree.
Implementations§
Source§impl Span
impl Span
Sourcepub fn verbose(self) -> Self
pub fn verbose(self) -> Self
Set the verbose attribute of the span.
When a span is marked as verbose, it will be included in the output
only if the verbose
flag in the Config
is set.
Sourcepub fn long_running(self) -> Self
pub fn long_running(self) -> Self
Set the long-running attribute of the span.
When a span is marked as long-running, it will not be marked as “!!!”
in the formatted Tree
if it takes too long to complete. The root
span is always marked as long-running.
Trait Implementations§
Source§impl Ord for Span
impl Ord for Span
Source§impl PartialOrd for Span
impl PartialOrd for Span
impl Eq for Span
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin 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