pub struct FlightRecorderEvent {
pub timestamp: i64,
pub level: String,
pub target: String,
pub message: String,
pub fields: HashMap<String, String>,
pub process: Option<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.
process: Option<String>Process that produced the event (e.g. “browser-popup”, “desktop-main”). Set by the
collecting context; None for events not yet attributed.
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 (const: unstable) · 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 FromWasm for FlightRecorderEvent
Available on crate feature wasm only.
impl FromWasm for FlightRecorderEvent
Available on crate feature
wasm only.Source§impl Serialize for FlightRecorderEvent
impl Serialize for FlightRecorderEvent
Source§impl ToWasm for FlightRecorderEvent
Available on crate feature wasm only.
impl ToWasm for FlightRecorderEvent
Available on crate feature
wasm only.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 /**\n * Process that produced the event (e.g. \"browser-popup\", \"desktop-main\"). Set by the\n * collecting context; `None` for events not yet attributed.\n */\n process?: string;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
Source§type JsType = JsType
type JsType = JsType
Must be a type imported through
#[wasm_bindgen] extern "C" { .. }.
[Ts<T>] is #[repr(transparent)] over this and passes it across the
ABI as a plain JS handle, which any other representation would break.fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Consume a handle, getting back the initial
Arc<> Read more