Type Definition seify::GenericDevice
source · pub type GenericDevice = Arc<dyn DeviceTrait<RxStreamer = Box<dyn RxStreamer>, TxStreamer = Box<dyn TxStreamer>> + Sync>;
Expand description
Type for a generic/wrapped hardware driver, implementing the DeviceTrait
.
This is usually used to create a hardware-independent Device<GenericDevice>
, for example,
through Device::new
, which doesn’t know a priori which implementation will be used.
The type abstracts over the DeviceTrait
implementation as well as the associated
streamer implementations.