Struct tracing_tunnel::CallSiteData
source · pub struct CallSiteData {
pub kind: CallSiteKind,
pub name: Cow<'static, str>,
pub target: Cow<'static, str>,
pub level: TracingLevel,
pub module_path: Option<Cow<'static, str>>,
pub file: Option<Cow<'static, str>>,
pub line: Option<u32>,
pub fields: Vec<Cow<'static, str>>,
}
Expand description
Data for a single tracing call site: either a span definition, or an event definition.
This corresponds to Metadata
from the tracing-core
library, but is (de)serializable.
Fields§
§kind: CallSiteKind
Kind of the call site.
name: Cow<'static, str>
Name of the call site.
target: Cow<'static, str>
Tracing target.
level: TracingLevel
Tracing level.
module_path: Option<Cow<'static, str>>
Path to the module where this call site is defined.
file: Option<Cow<'static, str>>
Path to the file where this call site is defined.
line: Option<u32>
Line number for this call site.
fields: Vec<Cow<'static, str>>
Fields defined by this call site.
Trait Implementations§
source§impl Clone for CallSiteData
impl Clone for CallSiteData
source§fn clone(&self) -> CallSiteData
fn clone(&self) -> CallSiteData
Returns a copy of the value. Read more
1.0.0 · 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 CallSiteData
impl Debug for CallSiteData
source§impl<'de> Deserialize<'de> for CallSiteData
impl<'de> Deserialize<'de> for CallSiteData
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