pub struct SpanInfo<'a, RS = RandomState> {
pub id: u64,
pub name: &'static str,
pub start: Duration,
pub end: Duration,
pub parents: Option<&'a [u64]>,
pub is_main_thread: bool,
pub fields: Option<&'a HashMap<&'static str, String, RS>>,
}Expand description
A recorded active section of a span.
Fields§
§id: u64§name: &'static str§start: Duration§end: Duration§parents: Option<&'a [u64]>§is_main_thread: bool§fields: Option<&'a HashMap<&'static str, String, RS>>Trait Implementations§
Auto Trait Implementations§
impl<'a, RS> Freeze for SpanInfo<'a, RS>
impl<'a, RS> RefUnwindSafe for SpanInfo<'a, RS>where
RS: RefUnwindSafe,
impl<'a, RS> Send for SpanInfo<'a, RS>where
RS: Sync,
impl<'a, RS> Sync for SpanInfo<'a, RS>where
RS: Sync,
impl<'a, RS> Unpin for SpanInfo<'a, RS>
impl<'a, RS> UnwindSafe for SpanInfo<'a, RS>where
RS: RefUnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more