Struct Trace Values
Source pub struct TraceValues<'a> { /* private fields */ }Expand description
The values of one custom span together with the TraceFormat that
describes them, as delivered to the TracerImpl::span_begin hook.
Because the format and values are paired here, iter can read
each value at its declared type without any unsafe in the caller.
Implementations§
Source§impl<'a> TraceValues<'a>
impl<'a> TraceValues<'a>
Sourcepub fn format(&self) -> TraceFormat
pub fn format(&self) -> TraceFormat
The format describing these values.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = Option<TraceValue<'a>>> + '_
pub fn iter(&self) -> impl ExactSizeIterator<Item = Option<TraceValue<'a>>> + '_
Read each value at its field’s declared type, in field order. None is
yielded for a field type this version does not recognize.
Auto Trait Implementations§
impl<'a> !Send for TraceValues<'a>
impl<'a> !Sync for TraceValues<'a>
impl<'a> Forget for TraceValues<'a>
impl<'a> Freeze for TraceValues<'a>
impl<'a> Move for TraceValues<'a>
impl<'a> RefUnwindSafe for TraceValues<'a>
impl<'a> Unpin for TraceValues<'a>
impl<'a> UnsafeUnpin for TraceValues<'a>
impl<'a> UnwindSafe for TraceValues<'a>
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> 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