pub struct ExtractRequest<'c, 'e, 't, P: ExtractPlugin> {
pub context: &'c mut P::ExtractContext,
pub event: &'e EventInput,
pub table_reader: &'t LazyTableReader<'t>,
pub offset: &'c mut ExtractByteRange,
}
Expand description
An extraction request
Fields§
§context: &'c mut P::ExtractContext
A context instance, potentially shared between extractions
event: &'e EventInput
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 ExtractByteRange
Offset 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§
Source§impl<'c, 'e, 't, P: Debug + ExtractPlugin> Debug for ExtractRequest<'c, 'e, 't, P>where
P::ExtractContext: Debug,
impl<'c, 'e, 't, P: Debug + ExtractPlugin> Debug for ExtractRequest<'c, 'e, 't, P>where
P::ExtractContext: Debug,
Auto Trait Implementations§
impl<'c, 'e, 't, P> Freeze for ExtractRequest<'c, 'e, 't, P>
impl<'c, 'e, 't, P> RefUnwindSafe for ExtractRequest<'c, 'e, 't, P>
impl<'c, 'e, 't, P> !Send for ExtractRequest<'c, 'e, 't, P>
impl<'c, 'e, 't, P> !Sync for ExtractRequest<'c, 'e, 't, P>
impl<'c, 'e, 't, P> Unpin for ExtractRequest<'c, 'e, 't, P>
impl<'c, 'e, 't, P> !UnwindSafe for ExtractRequest<'c, 'e, '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