Skip to main content

StreamOperatorManagement

Trait StreamOperatorManagement 

Source
pub trait StreamOperatorManagement {
    // Required methods
    fn reset(&mut self) -> Result<(), ErrorsJSL>;
    fn finalize(&mut self) -> Result<(), ErrorsJSL>;
}
Expand description

A stream operator trait indicates a standard interface for processing streams of data, such as audio or video streams. It defines a set of methods that can be implemented by different types of stream operators, allowing them to be used interchangeably in a streaming pipeline. The trait typically includes methods for initializing the operator, processing input data, and producing output data. By defining a common interface, the stream operator trait enables flexibility and modularity in the design of streaming applications, allowing developers to easily swap out different operators or add new ones without affecting the overall structure of the pipeline. This promotes code reuse and makes it easier to maintain and extend streaming applications over time.

Required Methods§

Source

fn reset(&mut self) -> Result<(), ErrorsJSL>

Resets the internal state of the operator, preparing it for a new stream of data. This method is typically called at the beginning of a new stream or when the operator needs to be reinitialized.

Source

fn finalize(&mut self) -> Result<(), ErrorsJSL>

Finalizes the processing of the stream, performing any necessary cleanup or final computations. This method is typically called at the end of a stream or when the operator needs to be shut down.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl StreamOperatorManagement for BiquadFilter

Source§

impl StreamOperatorManagement for BoxcarIntegrator<f64>

Source§

impl StreamOperatorManagement for ChannelImpairment

Source§

impl StreamOperatorManagement for ChannelReceiver

Source§

impl StreamOperatorManagement for ChannelTransmitter

Source§

impl StreamOperatorManagement for CriticallySampledPolyphaseAnalysisFilterBank

Source§

impl StreamOperatorManagement for CriticallySampledPolyphaseSynthesisFilterBank

Source§

impl StreamOperatorManagement for DecisionFeedbackEqualizer

Source§

impl StreamOperatorManagement for DiscreteLinearFilter<Complex<f64>>

For complex-valued filters, we can use Complex<f64> as the type parameter. This allows us to handle complex input and output samples, which is common in many DSP applications such as modulation, demodulation, and spectral processing.

Source§

impl StreamOperatorManagement for DiscreteLinearFilter<f64>

For real-valued filters, we can use the same implementation but with f64 as the type parameter. This allows us to reuse the same code for both real and complex filters, while still providing the necessary functionality for each type.

Source§

impl StreamOperatorManagement for FmDemodulator

Source§

impl StreamOperatorManagement for FmModulator

Source§

impl StreamOperatorManagement for FrequencyMixer

Source§

impl StreamOperatorManagement for KalmanFilter

Source§

impl StreamOperatorManagement for MuellerTimingRecovery

Source§

impl StreamOperatorManagement for NonLinearityTransformer<Complex<f64>>

For complex-valued inputs, the non-linearity is applied separately to the real and imaginary parts of each sample, producing a complex-valued output signal where both the real and imaginary components have been transformed by the non-linear function.

Source§

impl StreamOperatorManagement for NonLinearityTransformer<f64>

For real-valued inputs, the non-linearity is applied directly to each sample in the input signal, producing a real-valued output signal.

Source§

impl StreamOperatorManagement for OversampledPolyphaseAnalysisFilterBank

Source§

impl StreamOperatorManagement for OversampledPolyphaseSynthesisFilterBank

Source§

impl StreamOperatorManagement for PidController

Source§

impl StreamOperatorManagement for StateSpace

Source§

impl<T: Clone> StreamOperatorManagement for AddressableShiftRegister<T>

Source§

impl<T: Clone> StreamOperatorManagement for PingPongBuffer<T>

Source§

impl<T: IsAnalytic> StreamOperatorManagement for FarrowFilter<T>

Source§

impl<T: IsAnalytic> StreamOperatorManagement for FftFir<T>

Source§

impl<T: IsAnalytic> StreamOperatorManagement for OverlapAddFir<T>

Source§

impl<T: IsAnalytic> StreamOperatorManagement for PolyphaseArbitraryResampler<T>

Source§

impl<T: IsAnalytic> StreamOperatorManagement for PolyphaseIntegerResampler<T>

Source§

impl<W: Waveform> StreamOperatorManagement for NcoSource<W>