Enum vulkano::swapchain::AcquireError
source · #[repr(u32)]
pub enum AcquireError {
OomError(OomError),
DeviceLost,
Timeout,
SurfaceLost,
FullScreenExclusiveModeLost,
OutOfDate,
FenceError(FenceError),
SemaphoreError(SemaphoreError),
}
Expand description
Error that can happen when calling acquire_next_image
.
Variants§
OomError(OomError)
Not enough memory.
DeviceLost
The connection to the device has been lost.
Timeout
The timeout of the function has been reached before an image was available.
SurfaceLost
The surface is no longer accessible and must be recreated.
FullScreenExclusiveModeLost
The swapchain has lost or doesn’t have full-screen exclusivity possibly for implementation-specific reasons outside of the application’s control.
OutOfDate
The surface has changed in a way that makes the swapchain unusable. You must query the surface’s new properties and recreate a new swapchain if you want to continue drawing.
FenceError(FenceError)
Error during fence creation.
SemaphoreError(SemaphoreError)
Error during semaphore creation.
Trait Implementations§
source§impl Clone for AcquireError
impl Clone for AcquireError
source§fn clone(&self) -> AcquireError
fn clone(&self) -> AcquireError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AcquireError
impl Debug for AcquireError
source§impl Display for AcquireError
impl Display for AcquireError
source§impl Error for AcquireError
impl Error for AcquireError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<FenceError> for AcquireError
impl From<FenceError> for AcquireError
source§fn from(err: FenceError) -> Self
fn from(err: FenceError) -> Self
Converts to this type from the input type.
source§impl From<OomError> for AcquireError
impl From<OomError> for AcquireError
source§fn from(err: OomError) -> AcquireError
fn from(err: OomError) -> AcquireError
Converts to this type from the input type.
source§impl From<SemaphoreError> for AcquireError
impl From<SemaphoreError> for AcquireError
source§fn from(err: SemaphoreError) -> Self
fn from(err: SemaphoreError) -> Self
Converts to this type from the input type.
source§impl From<VulkanError> for AcquireError
impl From<VulkanError> for AcquireError
source§fn from(err: VulkanError) -> AcquireError
fn from(err: VulkanError) -> AcquireError
Converts to this type from the input type.
source§impl PartialEq<AcquireError> for AcquireError
impl PartialEq<AcquireError> for AcquireError
source§fn eq(&self, other: &AcquireError) -> bool
fn eq(&self, other: &AcquireError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.