pub enum SwapChainError {
Timeout,
Outdated,
Lost,
OutOfMemory,
}
Expand description
Result of an unsuccessful call to SwapChain::get_next_frame
.
Variants§
Timeout
A timeout was encountered while trying to acquire the next frame.
Outdated
The underlying surface has changed, and therefore the swap chain must be updated.
Lost
The swap chain has been lost and needs to be recreated.
OutOfMemory
There is no more memory left to allocate a new frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SwapChainError
impl RefUnwindSafe for SwapChainError
impl Send for SwapChainError
impl Sync for SwapChainError
impl Unpin 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