Trait falco_plugin::EventInputExt
source · 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§
sourcefn event_number(&self) -> usize
fn event_number(&self) -> usize
§Get the event number
Return the event number as determined by the plugin framework