pub struct Breadcrumb {
pub ts_ms: u128,
pub level: Level,
pub category: String,
pub message: String,
pub fields: Value,
pub pid: Option<u32>,
}Expand description
One recorded event in the flight recorder.
Fields§
§ts_ms: u128Unix-epoch milliseconds when recorded.
level: Level§category: StringCoarse category, e.g. "myapp.commit", "myapp.free".
message: StringHuman message (should already avoid user data; the writer redacts too).
fields: ValueStructured fields. Keep small and free of user content.
pid: Option<u32>Which process recorded this crumb. None for crumbs from this process’s
own recorder (they are all this process); Some for crumbs read back
from a shared, artifact-keyed ring, where the origin is the whole point.
Trait Implementations§
Source§impl Clone for Breadcrumb
impl Clone for Breadcrumb
Source§fn clone(&self) -> Breadcrumb
fn clone(&self) -> Breadcrumb
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 Breadcrumb
impl Debug for Breadcrumb
Source§impl<'de> Deserialize<'de> for Breadcrumb
impl<'de> Deserialize<'de> for Breadcrumb
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
Auto Trait Implementations§
impl Freeze for Breadcrumb
impl RefUnwindSafe for Breadcrumb
impl Send for Breadcrumb
impl Sync for Breadcrumb
impl Unpin for Breadcrumb
impl UnsafeUnpin for Breadcrumb
impl UnwindSafe for Breadcrumb
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