Struct tokio_bin_process::event::Event
source · pub struct Event {
pub timestamp: String,
pub level: Level,
pub target: String,
pub fields: Fields,
pub span: HashMap<String, Value>,
pub spans: Vec<HashMap<String, Value>>,
}Expand description
Represents an event created by tracing.
It is not possible to construct one directly from a tracing event.
Instead its expected that they are returned by one of the methods on crate::BinProcess which retrives them by parsing tracing’s JSON output.
Fields§
§timestamp: StringThe timestamp of the event.
level: LevelThe level of the event.
target: StringThe target of the event, this is usually the module name of the code that triggered the event.
fields: FieldsContains the message and other fields included in the event.
span: HashMap<String, Value>The last span that was entered before the event was triggered.
spans: Vec<HashMap<String, Value>>Every span that was active while the event was triggered.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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 PartialEq<Event> for Event
impl PartialEq<Event> for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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