#[repr(C)]pub struct CaptureStats {
pub measured_fps: f32,
pub frames_delivered: u64,
pub frames_dropped: u64,
}Expand description
Runtime stats for a capture stream - surfaced for HUD / debugging.
Fields§
§measured_fps: f32Measured delivery rate (frames/s), smoothed by the backend.
frames_delivered: u64Frames delivered to the texture since the stream started.
frames_dropped: u64Frames the backend dropped (couldn’t keep up / late).
Trait Implementations§
Source§impl Clone for CaptureStats
impl Clone for CaptureStats
Source§fn clone(&self) -> CaptureStats
fn clone(&self) -> CaptureStats
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 CaptureStats
impl Debug for CaptureStats
Source§impl Default for CaptureStats
impl Default for CaptureStats
Source§impl PartialEq for CaptureStats
impl PartialEq for CaptureStats
Source§fn eq(&self, other: &CaptureStats) -> bool
fn eq(&self, other: &CaptureStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CaptureStats
impl StructuralPartialEq for CaptureStats
Auto Trait Implementations§
impl Freeze for CaptureStats
impl RefUnwindSafe for CaptureStats
impl Send for CaptureStats
impl Sync for CaptureStats
impl Unpin for CaptureStats
impl UnsafeUnpin for CaptureStats
impl UnwindSafe for CaptureStats
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