Skip to main content

DynTxDevice

Trait DynTxDevice 

Source
pub trait DynTxDevice: DeviceInfo {
    // Required method
    fn tx_streamer(
        &self,
        channels: &[usize],
        args: Args,
    ) -> Result<DynTxStreamer, Error>;
}
Expand description

Object-safe TX streaming capability for runtime-dispatched devices.

Required Methods§

Source

fn tx_streamer( &self, channels: &[usize], args: Args, ) -> Result<DynTxStreamer, Error>

Create a type-erased TX streamer.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> DynTxDevice for T
where T: TxDevice, T::TxStreamer: 'static,