pub trait LightPdoTrace: Send {
// Required methods
fn next_light_pdo(&mut self) -> Option<LightPdo>;
fn pdo_size(&self) -> u64;
}Expand description
This is a trait that represents a trace of light PDO records.
The trace is a sequence of LightPdo, with nondecreasing timestamps.
Unlike other traces, the records are not consumed one after another in time:
the user (e.g. a cell in an emulator) picks the record matching the moment
the link goes from inactive to active.
The next_light_pdo function either returns the next record in the sequence, or None if the trace goes to end.
The pdo_size function returns how many bytes one light PDO can deliver. It is part of the trace, so the user doesn’t need to know where the trace came from.
Required Methods§
Trait Implementations§
Source§impl<Model: LightPdoTrace + 'static> From<Model> for Box<dyn LightPdoTrace>
impl<Model: LightPdoTrace + 'static> From<Model> for Box<dyn LightPdoTrace>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".