pub enum PresentError {
DeviceLost,
FullScreenExclusiveModeLost,
OutOfDate,
SurfaceLost,
}Expand description
Reason an image was not queued for presentation.
Variants§
DeviceLost
The device was lost.
FullScreenExclusiveModeLost
Exclusive full-screen ownership was lost.
OutOfDate
The swapchain is out of date and should be recreated.
SurfaceLost
The surface was lost and must be recreated.
Trait Implementations§
Source§impl Clone for PresentError
impl Clone for PresentError
Source§fn clone(&self) -> PresentError
fn clone(&self) -> PresentError
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 PresentError
Source§impl Debug for PresentError
impl Debug for PresentError
impl Eq for PresentError
Source§impl PartialEq for PresentError
impl PartialEq for PresentError
Source§fn eq(&self, other: &PresentError) -> bool
fn eq(&self, other: &PresentError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PresentError
Auto Trait Implementations§
impl Freeze for PresentError
impl RefUnwindSafe for PresentError
impl Send for PresentError
impl Sync for PresentError
impl Unpin for PresentError
impl UnsafeUnpin for PresentError
impl UnwindSafe for PresentError
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