#[non_exhaustive]pub struct StatsWindow {Show 22 fields
pub index: u32,
pub interval_ms: u32,
pub last: bool,
pub audio_played_ms: u32,
pub audio_concealed_ms: u32,
pub audio_packets_expected: u32,
pub audio_packets_received: u32,
pub audio_packets_lost: u32,
pub audio_jitter_ms: u32,
pub audio_longest_gap_ms: u32,
pub playout_source: PlayoutSource,
pub decrypt_failures: u32,
pub frames_before_key: u64,
pub refused_frames: u64,
pub frames_sent: u64,
pub frames_received: u64,
pub candidate: Option<String>,
pub relay_protocol: Option<String>,
pub rtt_ms: Option<u32>,
pub noise_removal: Option<NoiseRemovalState>,
pub sample: Option<CallStatsSample>,
pub beacon: BeaconOutcome,
}Expand description
One stats window: the numbers measured, the sample sent (if any) and Sew’s answer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: u32The window’s number in this call, from 1.
interval_ms: u32Its length, ms.
last: boolThe leave sample (the partial last window).
audio_played_ms: u32Audio played, ms, summed over streams.
audio_concealed_ms: u32Of that, concealed, ms.
audio_packets_expected: u32Audio packets expected, summed over streams.
audio_packets_received: u32Audio packets that arrived (unique).
audio_packets_lost: u32Of the expected, lost.
audio_jitter_ms: u32The worst stream’s jitter, ms.
audio_longest_gap_ms: u32The longest gap between two packets of one stream, ms (counted when the next packet arrives; a reconnect starts new streams, so its silence is not counted: see the module docs).
playout_source: PlayoutSourceWhere played and concealed came from.
decrypt_failures: u32Remote frames that failed to decrypt.
frames_before_key: u64Remote frames dropped because the sender’s key was not installed yet (a join or a key switch; the host’s view only, not sent to Sew).
refused_frames: u64Remote frames of tracks the keys did not allow (the host’s view only).
frames_sent: u64Frames encrypted and sent in the window.
frames_received: u64Remote frames decrypted in the window.
candidate: Option<String>The selected pair’s local candidate type (host, relay), when known.
relay_protocol: Option<String>For relay: udp, tcp or tls.
rtt_ms: Option<u32>The selected pair’s round-trip time, ms, when known.
noise_removal: Option<NoiseRemovalState>The microphone’s noise removal at the window’s end: {mode, active, reason} (the
host’s view only, not sent to Sew; None when the call’s audio reports none:
crate::AudioBridge::start_with_noise).
sample: Option<CallStatsSample>The body sent to Sew (absent when nothing was sent).
beacon: BeaconOutcomeWhat became of it.
Trait Implementations§
Source§impl Clone for StatsWindow
impl Clone for StatsWindow
Source§impl Debug for StatsWindow
impl Debug for StatsWindow
impl Eq for StatsWindow
Source§impl PartialEq for StatsWindow
impl PartialEq for StatsWindow
Source§impl Serialize for StatsWindow
impl Serialize for StatsWindow
impl StructuralPartialEq for StatsWindow
Auto Trait Implementations§
impl Forget for StatsWindow
impl Freeze for StatsWindow
impl Move for StatsWindow
impl RefUnwindSafe for StatsWindow
impl Send for StatsWindow
impl Sync for StatsWindow
impl Unpin for StatsWindow
impl UnsafeUnpin for StatsWindow
impl UnwindSafe for StatsWindow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CryptoSafe for T
impl<T> CryptoSafe for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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