pub struct Event<T> {
pub metadata: EventMetadata,
pub params: T,
}
Expand description
A Falco event.
This struct represents a Falco event with metadata and parameters. The EventMetadata
contains
fields common to all events (the timestamp and thread ID), while the params
field contains
the event-specific data.
Fields§
§metadata: EventMetadata
The metadata for the event, which includes common fields like timestamp and thread ID.
params: T
The parameters for the event, which are specific to the type of event.
Trait Implementations§
Source§impl<T: AnyEventPayload> AnyEventPayload for Event<T>
impl<T: AnyEventPayload> AnyEventPayload for Event<T>
Source§impl<T: PayloadToBytes> EventToBytes for Event<T>
impl<T: PayloadToBytes> EventToBytes for Event<T>
Auto Trait Implementations§
impl<T> Freeze for Event<T>where
T: Freeze,
impl<T> RefUnwindSafe for Event<T>where
T: RefUnwindSafe,
impl<T> Send for Event<T>where
T: Send,
impl<T> Sync for Event<T>where
T: Sync,
impl<T> Unpin for Event<T>where
T: Unpin,
impl<T> UnwindSafe for Event<T>where
T: UnwindSafe,
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