pub trait EventInputExt {
    // Required methods
    fn event(&self) -> Result<RawEvent<'_>>;
    fn source(&self) -> Option<&CStr>;
    fn event_number(&self) -> usize;
}
Expand description

§Extension trait for event objects from the Falco plugin framework

The object contains raw pointers and is not readily available for consumption in safe code. This trait provides safe accessors for the fields inside

Required Methods§

source

fn event(&self) -> Result<RawEvent<'_>>

§Get the event

This method parses the raw event data into a RawEvent instance, which can be later converted into a specific event type.

source

fn source(&self) -> Option<&CStr>

§Get the event source

Return the event source (if any)

source

fn event_number(&self) -> usize

§Get the event number

Return the event number as determined by the plugin framework

Implementors§