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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl StreamOperatorManagement for BiquadFilter
impl StreamOperatorManagement for BoxcarIntegrator<f64>
impl StreamOperatorManagement for ChannelImpairment
impl StreamOperatorManagement for ChannelReceiver
impl StreamOperatorManagement for ChannelTransmitter
impl StreamOperatorManagement for CriticallySampledPolyphaseAnalysisFilterBank
impl StreamOperatorManagement for CriticallySampledPolyphaseSynthesisFilterBank
impl StreamOperatorManagement for DecisionFeedbackEqualizer
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.
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.
impl StreamOperatorManagement for FmDemodulator
impl StreamOperatorManagement for FmModulator
impl StreamOperatorManagement for FrequencyMixer
impl StreamOperatorManagement for KalmanFilter
impl StreamOperatorManagement for MuellerTimingRecovery
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.
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.