pub struct Record {
pub upgrades: Vec<Upgrade>,
pub client_events: Vec<ClientEvent>,
pub appended_audio: Vec<u8>,
pub pings: usize,
pub deltas_sent: usize,
pub deltas_suppressed: usize,
pub sessions_ended: usize,
}Expand description
Everything the peer observed, and everything it emitted.
A snapshot: RealtimePeer::record clones it, so a test reads a consistent picture rather
than a moving one. The counts span the peer’s whole lifetime and every connection it served,
which is what lets ORB-16 assert that no second upgrade was attempted.
Fields§
§upgrades: Vec<Upgrade>Every upgrade attempt, in order.
client_events: Vec<ClientEvent>Every client event, in order.
appended_audio: Vec<u8>Every appended audio byte, concatenated in arrival order — the uplink as the far end heard it.
pings: usizeRFC 6455 Ping frames received. Liveness is the client’s timer; this is how a test proves the probe arrived at all.
deltas_sent: usizeresponse.output_audio.delta events actually written to the socket.
deltas_suppressed: usizeDeltas a test directed that the peer refused to send because the response had been
cancelled (CancelPolicy::Truncate).
sessions_ended: usizeConnections that have ended, however they ended.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnsafeUnpin for Record
impl UnwindSafe for Record
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more