Struct fluvio_future::tracing::field::FieldSet [−][src]
pub struct FieldSet { /* fields omitted */ }Describes the fields present on a span.
Implementations
impl FieldSet[src]
impl FieldSet[src]pub const fn new(
names: &'static [&'static str],
callsite: Identifier
) -> FieldSet[src]
pub const fn new(
names: &'static [&'static str],
callsite: Identifier
) -> FieldSet[src]Constructs a new FieldSet with the given array of field names and callsite.
pub fn field<Q>(&self, name: &Q) -> Option<Field> where
Q: Borrow<str> + ?Sized, [src]
pub fn field<Q>(&self, name: &Q) -> Option<Field> where
Q: Borrow<str> + ?Sized, [src]Returns the Field named name, or None if no such field exists.
pub fn contains(&self, field: &Field) -> bool[src]
pub fn contains(&self, field: &Field) -> bool[src]Returns true if self contains the given field.
ⓘNote
Note: Iffieldshares a name with a field in thisFieldSet, but was created by aFieldSetwith a different callsite, thisFieldSetdoes not contain it. This is so that if two separate span callsites define a field named "foo", theFieldcorresponding to "foo" for each of those callsites are not equivalent.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for FieldSet
impl Send for FieldSet
impl Sync for FieldSet
impl Unpin for FieldSet
impl !UnwindSafe for FieldSet
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;[src]
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;[src]
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;[src]