Struct ExtractRequest

Source
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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.