pub enum DeviceHostStalePolicy {
HoldLast,
PredictClamp,
Blank,
Refuse,
}Expand description
Policy applied when a device sample or rendered frame becomes stale.
Variants§
HoldLast
Keep the last accepted sample or rendered frame visible.
PredictClamp
Predict briefly from the last accepted sample, then clamp to the last frame.
Blank
Replace stale output with a blank sample or surface frame.
Refuse
Refuse stale output until the provider yields a fresh sample.
Trait Implementations§
Source§impl Clone for DeviceHostStalePolicy
impl Clone for DeviceHostStalePolicy
Source§fn clone(&self) -> DeviceHostStalePolicy
fn clone(&self) -> DeviceHostStalePolicy
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 DeviceHostStalePolicy
Source§impl Debug for DeviceHostStalePolicy
impl Debug for DeviceHostStalePolicy
impl Eq for DeviceHostStalePolicy
Source§impl PartialEq for DeviceHostStalePolicy
impl PartialEq for DeviceHostStalePolicy
impl StructuralPartialEq for DeviceHostStalePolicy
Auto Trait Implementations§
impl Freeze for DeviceHostStalePolicy
impl RefUnwindSafe for DeviceHostStalePolicy
impl Send for DeviceHostStalePolicy
impl Sync for DeviceHostStalePolicy
impl Unpin for DeviceHostStalePolicy
impl UnsafeUnpin for DeviceHostStalePolicy
impl UnwindSafe for DeviceHostStalePolicy
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