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
source§impl From<&Metadata<'static>> for CallSiteData
impl From<&Metadata<'static>> for CallSiteData
source§impl Hash for CallSiteData
impl Hash for CallSiteData
Auto Trait Implementations§
impl Freeze for CallSiteData
impl RefUnwindSafe for CallSiteData
impl Send for CallSiteData
impl Sync for CallSiteData
impl Unpin for CallSiteData
impl UnwindSafe for CallSiteData
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)