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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)