pub struct ChannelTransmitter { /* private fields */ }Implementations§
Trait Implementations§
Source§impl StreamOperator<Complex<f64>, Complex<f64>> for ChannelTransmitter
impl StreamOperator<Complex<f64>, Complex<f64>> for ChannelTransmitter
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 ChannelTransmitter
impl StreamOperator<f64, Complex<f64>> for ChannelTransmitter
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 ChannelTransmitter
impl StreamOperatorManagement for ChannelTransmitter
Auto Trait Implementations§
impl Freeze for ChannelTransmitter
impl RefUnwindSafe for ChannelTransmitter
impl Send for ChannelTransmitter
impl Sync for ChannelTransmitter
impl Unpin for ChannelTransmitter
impl UnsafeUnpin for ChannelTransmitter
impl UnwindSafe for ChannelTransmitter
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