pub struct FlightRecorderEvent {
pub timestamp: i64,
pub level: String,
pub target: String,
pub message: String,
pub fields: HashMap<String, String>,
}Expand description
A single log event captured by the Flight Recorder.
Fields§
§timestamp: i64Unix timestamp in milliseconds.
level: StringLog level (e.g. “DEBUG”, “INFO”, “WARN”, “ERROR”).
target: StringTarget module path (e.g. “bitwarden_core::client”).
message: StringPrimary log message.
fields: HashMap<String, String>Structured fields from the tracing event.
Trait Implementations§
Source§impl Clone for FlightRecorderEvent
impl Clone for FlightRecorderEvent
Source§fn clone(&self) -> FlightRecorderEvent
fn clone(&self) -> FlightRecorderEvent
Returns a duplicate 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 FlightRecorderEvent
impl Debug for FlightRecorderEvent
Source§impl<'de> Deserialize<'de> for FlightRecorderEvent
impl<'de> Deserialize<'de> for FlightRecorderEvent
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<&Event<'_>> for FlightRecorderEvent
impl From<&Event<'_>> for FlightRecorderEvent
Source§impl From<FlightRecorderEvent> for JsValuewhere
FlightRecorderEvent: Serialize,
impl From<FlightRecorderEvent> for JsValuewhere
FlightRecorderEvent: Serialize,
Source§fn from(value: FlightRecorderEvent) -> Self
fn from(value: FlightRecorderEvent) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for FlightRecorderEventwhere
Self: DeserializeOwned,
impl FromWasmAbi for FlightRecorderEventwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &FlightRecorderEventwhere
FlightRecorderEvent: Serialize,
impl IntoWasmAbi for &FlightRecorderEventwhere
FlightRecorderEvent: Serialize,
Source§impl IntoWasmAbi for FlightRecorderEventwhere
FlightRecorderEvent: Serialize,
impl IntoWasmAbi for FlightRecorderEventwhere
FlightRecorderEvent: Serialize,
Source§impl OptionFromWasmAbi for FlightRecorderEventwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for FlightRecorderEventwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for FlightRecorderEventwhere
FlightRecorderEvent: Serialize,
impl OptionIntoWasmAbi for FlightRecorderEventwhere
FlightRecorderEvent: Serialize,
Source§impl RefFromWasmAbi for FlightRecorderEventwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for FlightRecorderEventwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<FlightRecorderEvent>
type Anchor = SelfOwner<FlightRecorderEvent>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for FlightRecorderEvent
impl Serialize for FlightRecorderEvent
Source§impl Tsify for FlightRecorderEvent
impl Tsify for FlightRecorderEvent
const DECL: &'static str = "/**\n * A single log event captured by the Flight Recorder.\n */\nexport interface FlightRecorderEvent {\n /**\n * Unix timestamp in milliseconds.\n */\n timestamp: number;\n /**\n * Log level (e.g. \\\"DEBUG\\\", \\\"INFO\\\", \\\"WARN\\\", \\\"ERROR\\\").\n */\n level: string;\n /**\n * Target module path (e.g. \\\"bitwarden_core::client\\\").\n */\n target: string;\n /**\n * Primary log message.\n */\n message: string;\n /**\n * Structured fields from the tracing event.\n */\n fields: Record<string, string>;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl VectorFromWasmAbi for FlightRecorderEventwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for FlightRecorderEventwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for FlightRecorderEventwhere
FlightRecorderEvent: Serialize,
impl VectorIntoWasmAbi for FlightRecorderEventwhere
FlightRecorderEvent: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for FlightRecorderEvent
impl WasmDescribe for FlightRecorderEvent
Auto Trait Implementations§
impl Freeze for FlightRecorderEvent
impl RefUnwindSafe for FlightRecorderEvent
impl Send for FlightRecorderEvent
impl Sync for FlightRecorderEvent
impl Unpin for FlightRecorderEvent
impl UnsafeUnpin for FlightRecorderEvent
impl UnwindSafe for FlightRecorderEvent
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.