pub enum SwapchainError {
DeviceLost,
Driver(DriverError),
FullScreenExclusiveModeLost,
NotReady,
SurfaceLost,
Timeout,
}Expand description
Describes the condition of a swapchain.
Variants§
DeviceLost
This frame is lost but more may be acquired later.
Driver(DriverError)
Recoverable driver error.
FullScreenExclusiveModeLost
Exclusive full-screen ownership was lost and the swapchain should be recreated.
NotReady
No image is currently available, but a future acquire may succeed.
SurfaceLost
The surface was lost and must be recreated, which includes any operating system window.
Timeout
No image was acquired before the configured acquire timeout elapsed.
Trait Implementations§
Source§impl Clone for SwapchainError
impl Clone for SwapchainError
Source§fn clone(&self) -> SwapchainError
fn clone(&self) -> SwapchainError
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 SwapchainError
Source§impl Debug for SwapchainError
impl Debug for SwapchainError
Source§impl From<DriverError> for SwapchainError
impl From<DriverError> for SwapchainError
Source§fn from(err: DriverError) -> Self
fn from(err: DriverError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SwapchainError
impl RefUnwindSafe for SwapchainError
impl Send for SwapchainError
impl Sync for SwapchainError
impl Unpin for SwapchainError
impl UnsafeUnpin for SwapchainError
impl UnwindSafe for SwapchainError
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