#[non_exhaustive]pub enum TracingWire<'a> {
NewSpan {
id: SerializeId,
attrs: SerializeAttributes<'a>,
values: SerializeRecord<'a>,
},
Record {
values: SerializeRecord<'a>,
span: SerializeId,
},
RecordFollowsFrom {
follows: SerializeId,
span: SerializeId,
},
Event(SerializeEvent<'a>),
Enter(SerializeId),
Exit(SerializeId),
Close(SerializeId),
IdClone {
new: SerializeId,
old: SerializeId,
},
Other(TWOther),
}Expand description
The tracing wire event enumeration
This enumeration contains all possible event kinds that are produced by tracing-rs,
plus a TWOther variant for non-tracing metadata to be sent.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NewSpan
Record
RecordFollowsFrom
Event(SerializeEvent<'a>)
Enter(SerializeId)
Exit(SerializeId)
Close(SerializeId)
IdClone
Other(TWOther)
Trait Implementations§
Source§impl<'a> Debug for TracingWire<'a>
impl<'a> Debug for TracingWire<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for TracingWire<'a>
impl<'de: 'a, 'a> Deserialize<'de> for TracingWire<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for TracingWire<'a>
impl<'a> !RefUnwindSafe for TracingWire<'a>
impl<'a> Send for TracingWire<'a>where
'a: 'static,
impl<'a> !Sync for TracingWire<'a>
impl<'a> Unpin for TracingWire<'a>
impl<'a> !UnwindSafe for TracingWire<'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