pub struct PresentationFeedback { /* private fields */ }Expand description
Opt-in recoverable presentation budgets, independent of GPU dependencies.
Register this as an Application Resource to keep the stock desktop host alive
after typed scene/composition budget rejections. Read via AppRes next frame
to reduce presentation work, close a document, request another World or exit.
No limits are raised, no geometry is silently dropped and canonical updates
are not rolled back. Fixed and frame systems continue; pausing is app policy.
A rejected attempt is not presented. The last CPU snapshot survives failed extraction, but the host never replays a stale-generation frame. The window manager may retain the previous surface image; this is not guaranteed after resize or loss. Allocation, invalid-geometry, system and invariant errors remain errors. Without this optional resource, desktop stays fail-fast.
Implementations§
Source§impl PresentationFeedback
impl PresentationFeedback
Sourcepub const fn last_rejection(&self) -> Option<PresentationBudgetRejection>
pub const fn last_rejection(&self) -> Option<PresentationBudgetRejection>
Last rejection, cleared only after a confirmed native presentation. Headless operation never invents a native submission result.
Sourcepub const fn rejected_frames(&self) -> u64
pub const fn rejected_frames(&self) -> u64
Saturating lifetime count, independent of temporary surface skips.
Trait Implementations§
Source§impl Debug for PresentationFeedback
impl Debug for PresentationFeedback
Auto Trait Implementations§
impl Freeze for PresentationFeedback
impl RefUnwindSafe for PresentationFeedback
impl Send for PresentationFeedback
impl Sync for PresentationFeedback
impl Unpin for PresentationFeedback
impl UnsafeUnpin for PresentationFeedback
impl UnwindSafe for PresentationFeedback
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> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync 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> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
Source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates Self using default().