pub struct ExtractRequest<'c, 'e, 'r, 't, P: ExtractPlugin> {
pub context: &'c mut P::ExtractContext,
pub event: &'e EventInput<'r, P::Event<'r>>,
pub table_reader: &'t LazyTableReader<'t>,
pub offset: &'c mut ExtractByteRange,
}Expand description
An extraction request
Fields§
§context: &'c mut P::ExtractContextA context instance, potentially shared between extractions
event: &'e EventInput<'r, P::Event<'r>>The event being processed
table_reader: &'t LazyTableReader<'t>An interface to access tables exposed from Falco core and other plugins
See crate::tables for details.
offset: &'c mut ExtractByteRangeOffset of extracted data in event payload
If set to ExtractByteRange::Requested, and the plugin supports it, replace this
with a ExtractByteRange::Found containing the byte range containing the extracted value,
within the whole event buffer. In the typical case of a range inside the plugin event
data, you can use the ExtractByteRange::in_plugin_data helper.
If the data is computed (not directly coming from any byte range in the event), use
UNSPECIFIED_RANGE instead.
Note: range support is optional, and this field can be ignored.
Trait Implementations§
Auto Trait Implementations§
impl<'c, 'e, 'r, 't, P> Freeze for ExtractRequest<'c, 'e, 'r, 't, P>
impl<'c, 'e, 'r, 't, P> RefUnwindSafe for ExtractRequest<'c, 'e, 'r, 't, P>
impl<'c, 'e, 'r, 't, P> !Send for ExtractRequest<'c, 'e, 'r, 't, P>
impl<'c, 'e, 'r, 't, P> !Sync for ExtractRequest<'c, 'e, 'r, 't, P>
impl<'c, 'e, 'r, 't, P> Unpin for ExtractRequest<'c, 'e, 'r, 't, P>
impl<'c, 'e, 'r, 't, P> !UnwindSafe for ExtractRequest<'c, 'e, 'r, 't, P>
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