#[repr(C)]pub enum SurfaceStatus {
Good = 0,
Suboptimal = 1,
Timeout = 2,
Occluded = 3,
Outdated = 4,
Lost = 5,
Validation = 6,
}Expand description
Status of the received surface image.
Variants§
Good = 0
No issues.
Suboptimal = 1
The swap chain is operational, but it does no longer perfectly match the surface. A re-configuration is needed.
Timeout = 2
Unable to get the next frame, timed out.
Try reconfiguring your surface.
Occluded = 3
The window is occluded (e.g. minimized or behind another window).
Try again once the window is no longer occluded.
Outdated = 4
The surface under the swap chain has changed.
Try reconfiguring your surface.
Lost = 5
The surface under the swap chain is lost.
Validation = 6
Surface::get_current_texture has hit a validation error which was caught
by a error scope.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SurfaceStatus
impl RefUnwindSafe for SurfaceStatus
impl Send for SurfaceStatus
impl Sync for SurfaceStatus
impl Unpin for SurfaceStatus
impl UnwindSafe for SurfaceStatus
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more