trait WriteClock {
// Required methods
fn start(&self, frame: &Message) -> Instant;
fn end(&self) -> Instant;
}Expand description
The clock a measured write reads.
The start is handed the frame it measures: the shipping clock ignores it, and the test’s fake records its length - which is what proves the read happens after the message is serialised (#2506).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".