Skip to main content

PassthroughProcessor

Struct PassthroughProcessor 

Source
pub struct PassthroughProcessor<R, L> { /* private fields */ }
Expand description

A no-op processor that passes records through unchanged.

Implementations§

Source§

impl<R, L> PassthroughProcessor<R, L>

Source

pub fn new() -> Self

Create a new passthrough processor.

Source

pub fn disabled() -> Self

Create a disabled passthrough processor.

Trait Implementations§

Source§

impl<R, L> Default for PassthroughProcessor<R, L>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<R: Send + Sync, L: Send + Sync> PostProcessor for PassthroughProcessor<R, L>

Source§

type Record = R

The type of records this processor modifies.
Source§

type Label = L

The type of labels this processor produces.
Source§

fn process( &mut self, _record: &mut Self::Record, _context: &ProcessContext, ) -> SynthResult<Vec<Self::Label>>

Process a single record, potentially modifying it and generating labels. Read more
Source§

fn name(&self) -> &'static str

Get the name of this processor.
Source§

fn is_enabled(&self) -> bool

Check if this processor is enabled.
Source§

fn stats(&self) -> ProcessorStats

Get processing statistics.
Source§

fn reset_stats(&mut self)

Reset statistics (for testing or between batches).
Source§

fn process_batch( &mut self, records: &mut [Self::Record], base_context: &ProcessContext, ) -> SynthResult<Vec<Self::Label>>

Process a batch of records. Read more

Auto Trait Implementations§

§

impl<R, L> Freeze for PassthroughProcessor<R, L>

§

impl<R, L> RefUnwindSafe for PassthroughProcessor<R, L>

§

impl<R, L> Send for PassthroughProcessor<R, L>
where R: Send, L: Send,

§

impl<R, L> Sync for PassthroughProcessor<R, L>
where R: Sync, L: Sync,

§

impl<R, L> Unpin for PassthroughProcessor<R, L>
where R: Unpin, L: Unpin,

§

impl<R, L> UnwindSafe for PassthroughProcessor<R, L>
where R: UnwindSafe, L: UnwindSafe,

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

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V