pub enum RafxPresentSuccessResult {
Success,
SuccessSuboptimal,
DeviceReset,
}
Expand description
Indicates the result of presenting a swapchain image
Variants§
Success
The image was shown and the swapchain can continue to be used.
SuccessSuboptimal
The image was shown and the swapchain can continue to be used. However, this result also hints that there is a more optimal configuration for the swapchain to be in. This is vague because the precise meaning varies between platform. For example, windows may return this when the application is minimized.
DeviceReset
Indicates that the swapchain can no longer be used
Trait Implementations§
source§impl Clone for RafxPresentSuccessResult
impl Clone for RafxPresentSuccessResult
source§fn clone(&self) -> RafxPresentSuccessResult
fn clone(&self) -> RafxPresentSuccessResult
Returns a copy of the value. Read more
1.0.0 · 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 RafxPresentSuccessResult
impl Debug for RafxPresentSuccessResult
source§impl PartialEq for RafxPresentSuccessResult
impl PartialEq for RafxPresentSuccessResult
source§fn eq(&self, other: &RafxPresentSuccessResult) -> bool
fn eq(&self, other: &RafxPresentSuccessResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RafxPresentSuccessResult
impl StructuralPartialEq for RafxPresentSuccessResult
Auto Trait Implementations§
impl RefUnwindSafe for RafxPresentSuccessResult
impl Send for RafxPresentSuccessResult
impl Sync for RafxPresentSuccessResult
impl Unpin for RafxPresentSuccessResult
impl UnwindSafe for RafxPresentSuccessResult
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
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
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.