pub struct ChannelReceiver { /* private fields */ }Expand description
Receiver front-end that mixes a channel to baseband and then resamples.
Processing order:
- Frequency shift (
FrequencyMixer) - Arbitrary polyphase resample (
PolyphaseArbitraryResampler)
Implementations§
Trait Implementations§
Source§impl StreamOperator<Complex<f64>, Complex<f64>> for ChannelReceiver
impl StreamOperator<Complex<f64>, Complex<f64>> for ChannelReceiver
Source§fn process(
&mut self,
data_in: &[Complex<f64>],
) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
fn process( &mut self, data_in: &[Complex<f64>], ) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
Processes a chunk of input data and produces a corresponding chunk of output data. The input and output types can be defined based on the specific requirements of the application, such as audio samples, video frames, or other types of data.
This method is called repeatedly as new data becomes available in the stream.
Source§fn flush(&mut self) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
fn flush(&mut self) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
Flushes any remaining data in the operator’s internal buffers and produces any final output data. This method is typically called at the end of a stream or when the operator needs to be shut down, allowing it to perform any necessary cleanup or final computations before the stream is terminated.
Source§impl StreamOperator<f64, Complex<f64>> for ChannelReceiver
impl StreamOperator<f64, Complex<f64>> for ChannelReceiver
Source§fn process(
&mut self,
data_in: &[f64],
) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
fn process( &mut self, data_in: &[f64], ) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
Processes a chunk of input data and produces a corresponding chunk of output data. The input and output types can be defined based on the specific requirements of the application, such as audio samples, video frames, or other types of data.
This method is called repeatedly as new data becomes available in the stream.
Source§fn flush(&mut self) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
fn flush(&mut self) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
Flushes any remaining data in the operator’s internal buffers and produces any final output data. This method is typically called at the end of a stream or when the operator needs to be shut down, allowing it to perform any necessary cleanup or final computations before the stream is terminated.
Source§impl StreamOperatorManagement for ChannelReceiver
impl StreamOperatorManagement for ChannelReceiver
Auto Trait Implementations§
impl Freeze for ChannelReceiver
impl RefUnwindSafe for ChannelReceiver
impl Send for ChannelReceiver
impl Sync for ChannelReceiver
impl Unpin for ChannelReceiver
impl UnsafeUnpin for ChannelReceiver
impl UnwindSafe for ChannelReceiver
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