pub trait ModeledSource {
type Sample: DeviceSample;
// Required method
fn at(&self, index: u64) -> Self::Sample;
}Expand description
A deterministic sample source driven entirely by an integer index.
Implementations must not read clocks, random sources, hardware, network, or process state. The same source and index must always produce the same sample.
Required Associated Types§
Sourcetype Sample: DeviceSample
type Sample: DeviceSample
Sample type emitted by the source.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".