Struct diagnostics_log_encoding::encode::TracingEvent
source · pub struct TracingEvent<'a, S> { /* private fields */ }
Expand description
An event emitted by tracing
.
Implementations§
source§impl<'a, S> TracingEvent<'a, S>
impl<'a, S> TracingEvent<'a, S>
sourcepub fn new(event: &'a Event<'_>, context: Context<'a, S>) -> TracingEvent<'a, S>
pub fn new(event: &'a Event<'_>, context: Context<'a, S>) -> TracingEvent<'a, S>
Wraps a tracing event with its associated context.
Trait Implementations§
source§impl<'a, S> RecordEvent for TracingEvent<'a, S>where
for<'lookup> S: Subscriber + LookupSpan<'lookup>,
impl<'a, S> RecordEvent for TracingEvent<'a, S>where
for<'lookup> S: Subscriber + LookupSpan<'lookup>,
source§fn severity(&self) -> RawSeverity
fn severity(&self) -> RawSeverity
Returns the record severity.
source§fn line(&self) -> Option<u32>
fn line(&self) -> Option<u32>
Returns the number of the line in the file where the record was emitted.
source§fn write_arguments<B: MutableBuffer>(
self,
writer: &mut Encoder<B>
) -> Result<(), EncodingError>
fn write_arguments<B: MutableBuffer>( self, writer: &mut Encoder<B> ) -> Result<(), EncodingError>
Consumes this type and writes all the arguments.
Auto Trait Implementations§
impl<'a, S> Freeze for TracingEvent<'a, S>
impl<'a, S> !RefUnwindSafe for TracingEvent<'a, S>
impl<'a, S> !Send for TracingEvent<'a, S>
impl<'a, S> !Sync for TracingEvent<'a, S>
impl<'a, S> Unpin for TracingEvent<'a, S>
impl<'a, S> !UnwindSafe for TracingEvent<'a, S>
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