#[non_exhaustive]pub struct RawEvent<'a, 'f> {
pub type_id: WireTypeId,
pub name: &'f str,
pub timestamp_ns: Option<u64>,
pub fields: &'f [FieldValueRef<'a>],
pub schema: &'f SchemaEntry,
pub string_pool: &'f StringPool,
pub stack_pool: &'f StackPool,
}Expand description
A decoded event passed to Decoder::for_each_event.
'a is the lifetime of the input data buffer (strings, stack frames borrow from it).
'f is the lifetime of the fields slice and schema name (reused across calls).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_id: WireTypeId§name: &'f str§timestamp_ns: Option<u64>§fields: &'f [FieldValueRef<'a>]§schema: &'f SchemaEntry§string_pool: &'f StringPool§stack_pool: &'f StackPoolImplementations§
Auto Trait Implementations§
impl<'a, 'f> Freeze for RawEvent<'a, 'f>
impl<'a, 'f> RefUnwindSafe for RawEvent<'a, 'f>
impl<'a, 'f> Send for RawEvent<'a, 'f>
impl<'a, 'f> Sync for RawEvent<'a, 'f>
impl<'a, 'f> Unpin for RawEvent<'a, 'f>
impl<'a, 'f> UnsafeUnpin for RawEvent<'a, 'f>
impl<'a, 'f> UnwindSafe for RawEvent<'a, 'f>
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