pub enum PresentFailure {
DeviceLost,
Driver(DriverError),
FullScreenExclusiveModeLost,
OutOfDate,
SurfaceLost,
}Expand description
Batch-level presentation failure.
Variants§
DeviceLost
The device was lost.
Driver(DriverError)
The driver rejected the request before item-level present results were available.
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 PresentFailure
impl Clone for PresentFailure
Source§fn clone(&self) -> PresentFailure
fn clone(&self) -> PresentFailure
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 PresentFailure
Source§impl Debug for PresentFailure
impl Debug for PresentFailure
Source§impl Display for PresentFailure
impl Display for PresentFailure
Source§impl Error for PresentFailure
impl Error for PresentFailure
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for PresentFailure
impl RefUnwindSafe for PresentFailure
impl Send for PresentFailure
impl Sync for PresentFailure
impl Unpin for PresentFailure
impl UnsafeUnpin for PresentFailure
impl UnwindSafe for PresentFailure
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