pub enum PresentOutcome {
Presented,
SkippedNoDamage,
WaitInFlight,
PresentFailedRetry,
}Expand description
Explicit presentation outcome for every frame tick separating real presents, idle skips, bounded pipelining waits, and retryable failures.
Variants§
Presented
Complete frame was presented to the active display swapchain or host surface.
SkippedNoDamage
Frame tick was skipped because zero scene or surface damage occurred.
WaitInFlight
Submission waited because the bounded in-flight frame queue (max_frames_in_flight) was full.
PresentFailedRetry
Presentation failed transiently; the full pending frame must retry on the same surface generation.
Implementations§
Source§impl PresentOutcome
Query and conversion helpers for PresentOutcome.
impl PresentOutcome
Query and conversion helpers for PresentOutcome.
Sourcepub const fn is_presented(&self) -> bool
pub const fn is_presented(&self) -> bool
Sourcepub const fn should_retry(&self) -> bool
pub const fn should_retry(&self) -> bool
Sourcepub const fn is_idle_or_waiting(&self) -> bool
pub const fn is_idle_or_waiting(&self) -> bool
Sourcepub const fn to_submit_outcome(&self) -> FrameSubmitOutcome
pub const fn to_submit_outcome(&self) -> FrameSubmitOutcome
Sourcepub const fn from_submit_outcome(outcome: FrameSubmitOutcome) -> Self
pub const fn from_submit_outcome(outcome: FrameSubmitOutcome) -> Self
Trait Implementations§
Source§impl Clone for PresentOutcome
impl Clone for PresentOutcome
impl Copy for PresentOutcome
Source§impl Debug for PresentOutcome
impl Debug for PresentOutcome
Source§impl Default for PresentOutcome
impl Default for PresentOutcome
Source§impl<'de> Deserialize<'de> for PresentOutcome
impl<'de> Deserialize<'de> for PresentOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PresentOutcome
Source§impl From<FrameSubmitOutcome> for PresentOutcome
Lossless conversion from FrameSubmitOutcome into PresentOutcome.
impl From<FrameSubmitOutcome> for PresentOutcome
Lossless conversion from FrameSubmitOutcome into PresentOutcome.
Source§impl From<PresentOutcome> for FrameSubmitOutcome
Lossy conversion from PresentOutcome into FrameSubmitOutcome.
impl From<PresentOutcome> for FrameSubmitOutcome
Lossy conversion from PresentOutcome into FrameSubmitOutcome.
Source§impl Hash for PresentOutcome
impl Hash for PresentOutcome
Source§impl Ord for PresentOutcome
impl Ord for PresentOutcome
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PresentOutcome
impl PartialEq for PresentOutcome
Source§impl PartialOrd for PresentOutcome
impl PartialOrd for PresentOutcome
Source§impl Serialize for PresentOutcome
impl Serialize for PresentOutcome
impl StructuralPartialEq for PresentOutcome
Auto Trait Implementations§
impl Forget for PresentOutcome
impl Freeze for PresentOutcome
impl Move for PresentOutcome
impl RefUnwindSafe for PresentOutcome
impl Send for PresentOutcome
impl Sync for PresentOutcome
impl Unpin for PresentOutcome
impl UnsafeUnpin for PresentOutcome
impl UnwindSafe for PresentOutcome
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