pub struct ExportedSpan {
pub name: String,
pub target: String,
pub file: Option<String>,
pub line: Option<u32>,
pub fields: String,
}Expand description
One span of an exported span trace: which tracing span was active, and where it was
entered.
Fields§
§name: StringThe span’s name.
target: StringThe span’s target, usually the module path it was created in.
file: Option<String>The source file the span was created in, if known.
line: Option<u32>The source line the span was created at, if known.
fields: StringThe span’s recorded fields, formatted as text: tracing’s own instrumentation
records field values as formatted text, not structured data, so this is as
structured as a span’s fields can get without a custom subscriber.
Trait Implementations§
Source§impl Clone for ExportedSpan
impl Clone for ExportedSpan
Source§fn clone(&self) -> ExportedSpan
fn clone(&self) -> ExportedSpan
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 ExportedSpan
impl Debug for ExportedSpan
Source§impl<'de> Deserialize<'de> for ExportedSpan
impl<'de> Deserialize<'de> for ExportedSpan
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 PartialEq for ExportedSpan
impl PartialEq for ExportedSpan
Source§impl Serialize for ExportedSpan
impl Serialize for ExportedSpan
impl StructuralPartialEq for ExportedSpan
Auto Trait Implementations§
impl Freeze for ExportedSpan
impl RefUnwindSafe for ExportedSpan
impl Send for ExportedSpan
impl Sync for ExportedSpan
impl Unpin for ExportedSpan
impl UnsafeUnpin for ExportedSpan
impl UnwindSafe for ExportedSpan
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