pub struct OwnedEvent {
pub level: TracingLevel,
pub file: Option<String>,
pub target: String,
pub line: Option<u32>,
pub name: &'static str,
pub message: Option<String>,
pub fields: Map<String, Value>,
}
Expand description
§OwnedEvent
OwnedEvent
is the an owned version of the Event
, which
is not Send
. Our event must be Send
to be sent on a channel.
Fields§
§level: TracingLevel
§file: Option<String>
§target: String
§line: Option<u32>
§name: &'static str
§message: Option<String>
§fields: Map<String, Value>
Trait Implementations§
Source§impl Clone for OwnedEvent
impl Clone for OwnedEvent
Source§fn clone(&self) -> OwnedEvent
fn clone(&self) -> OwnedEvent
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 OwnedEvent
impl Debug for OwnedEvent
Source§impl From<&Event<'_>> for OwnedEvent
Converts a tracing::Event
to a OwnedEvent
.
impl From<&Event<'_>> for OwnedEvent
Converts a tracing::Event
to a OwnedEvent
.
The conversion essentially makes the Event
an owned value,
which is necessary for it to be Send
and hence to be sent on a channel.
Auto Trait Implementations§
impl Freeze for OwnedEvent
impl RefUnwindSafe for OwnedEvent
impl Send for OwnedEvent
impl Sync for OwnedEvent
impl Unpin for OwnedEvent
impl UnwindSafe for OwnedEvent
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