pub enum SpanEvents {
New,
Enter,
Exit,
Close,
None,
Active,
Full,
}Expand description
Span event types, check FmtSpan Implementations.
Variants§
New
one event when span is created
Enter
one event per enter of a span
Exit
one event per exit of a span
Close
one event when the span is dropped
None
spans are ignored (this is the default)
Active
one event per enter/exit of a span
Full
events at all points (new, enter, exit, drop)
Trait Implementations§
Source§impl Clone for SpanEvents
impl Clone for SpanEvents
Source§fn clone(&self) -> SpanEvents
fn clone(&self) -> SpanEvents
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpanEvents
impl Debug for SpanEvents
Source§impl<'de> Deserialize<'de> for SpanEvents
impl<'de> Deserialize<'de> for SpanEvents
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SpanEvents> for FmtSpan
Convert data model SpanEvents to tracing subscriber
impl From<SpanEvents> for FmtSpan
Convert data model SpanEvents to tracing subscriber
Source§fn from(value: SpanEvents) -> Self
fn from(value: SpanEvents) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SpanEvents
impl PartialEq for SpanEvents
Source§fn eq(&self, other: &SpanEvents) -> bool
fn eq(&self, other: &SpanEvents) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SpanEvents
impl Serialize for SpanEvents
impl Copy for SpanEvents
impl Eq for SpanEvents
impl StructuralPartialEq for SpanEvents
Auto Trait Implementations§
impl Freeze for SpanEvents
impl RefUnwindSafe for SpanEvents
impl Send for SpanEvents
impl Sync for SpanEvents
impl Unpin for SpanEvents
impl UnsafeUnpin for SpanEvents
impl UnwindSafe for SpanEvents
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.