pub struct StreamCassetteTiming {
pub clock: Symbol,
pub packet_count: usize,
pub first_sequence: Option<u64>,
pub last_sequence: Option<u64>,
pub finite: bool,
}Expand description
Derived timing summary for a recorded cassette.
Captures the clock the stream ran on, how many packets were recorded, the sequence range of the first and last envelopes, and whether the trace is finite (a golden fixture must be finite).
Fields§
§clock: SymbolClock-domain symbol the recorded stream advanced against.
packet_count: usizeNumber of envelopes captured in the cassette.
first_sequence: Option<u64>Sequence number of the first envelope, or None when empty.
last_sequence: Option<u64>Sequence number of the last envelope, or None when empty.
finite: boolWhether the recorded trace terminated; golden fixtures must be finite.
Implementations§
Trait Implementations§
Source§impl Clone for StreamCassetteTiming
impl Clone for StreamCassetteTiming
Source§fn clone(&self) -> StreamCassetteTiming
fn clone(&self) -> StreamCassetteTiming
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamCassetteTiming
impl Debug for StreamCassetteTiming
impl Eq for StreamCassetteTiming
Source§impl PartialEq for StreamCassetteTiming
impl PartialEq for StreamCassetteTiming
Source§fn eq(&self, other: &StreamCassetteTiming) -> bool
fn eq(&self, other: &StreamCassetteTiming) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamCassetteTiming
Auto Trait Implementations§
impl Freeze for StreamCassetteTiming
impl RefUnwindSafe for StreamCassetteTiming
impl Send for StreamCassetteTiming
impl Sync for StreamCassetteTiming
impl Unpin for StreamCassetteTiming
impl UnsafeUnpin for StreamCassetteTiming
impl UnwindSafe for StreamCassetteTiming
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more