pub struct PresentationStats {
pub presented: u64,
pub dropped: u64,
pub late_dropped: u64,
}Expand description
Cumulative presentation counters a paced sink kept over a run, read via
AsyncElement::presentation_stats once the sink’s arm ends. consumed
alone can’t say whether frames actually reached the display on time; these
counters split it into shown vs shed.
Fields§
§presented: u64Frames the sink actually presented (e.g. committed and acknowledged by the display server).
dropped: u64Frames overwritten before they ever painted (a DropOldest pacing
policy under a slow consumer).
late_dropped: u64Frames discarded by QoS late-drop (past their deadline beyond the configured bound).
Trait Implementations§
Source§impl Clone for PresentationStats
impl Clone for PresentationStats
Source§fn clone(&self) -> PresentationStats
fn clone(&self) -> PresentationStats
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 moreimpl Copy for PresentationStats
Source§impl Debug for PresentationStats
impl Debug for PresentationStats
Source§impl Default for PresentationStats
impl Default for PresentationStats
Source§fn default() -> PresentationStats
fn default() -> PresentationStats
Returns the “default value” for a type. Read more
impl Eq for PresentationStats
Source§impl PartialEq for PresentationStats
impl PartialEq for PresentationStats
impl StructuralPartialEq for PresentationStats
Auto Trait Implementations§
impl Freeze for PresentationStats
impl RefUnwindSafe for PresentationStats
impl Send for PresentationStats
impl Sync for PresentationStats
impl Unpin for PresentationStats
impl UnsafeUnpin for PresentationStats
impl UnwindSafe for PresentationStats
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