#[repr(C)]pub enum SurfaceStatus {
Good = 0,
Suboptimal = 1,
Timeout = 2,
Outdated = 3,
Lost = 4,
}
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.
Outdated = 3
The surface under the swap chain has changed.
Lost = 4
The surface under the swap chain is lost.
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