pub trait ProtocolPlugin: Send + 'static {
// Required method
fn simulate(
self: Box<Self>,
) -> Pin<Box<dyn Stream<Item = DataPoint> + Send>>;
}Available on crate feature
std only.Expand description
Protocol plugin trait for the daemon’s plugin architecture.
Implementations produce a stream of TUP DataPoint values
(from simulated or real hardware).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".