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
sourceimpl Clone for AcquireError
impl Clone for AcquireError
sourcefn clone(&self) -> AcquireError
fn clone(&self) -> AcquireError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AcquireError
impl Debug for AcquireError
sourceimpl Display for AcquireError
impl Display for AcquireError
sourceimpl Error for AcquireError
impl Error for AcquireError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<FenceError> for AcquireError
impl From<FenceError> for AcquireError
sourcefn from(err: FenceError) -> Self
fn from(err: FenceError) -> Self
Converts to this type from the input type.
sourceimpl From<OomError> for AcquireError
impl From<OomError> for AcquireError
sourcefn from(err: OomError) -> AcquireError
fn from(err: OomError) -> AcquireError
Converts to this type from the input type.
sourceimpl From<SemaphoreError> for AcquireError
impl From<SemaphoreError> for AcquireError
sourcefn from(err: SemaphoreError) -> Self
fn from(err: SemaphoreError) -> Self
Converts to this type from the input type.
sourceimpl From<VulkanError> for AcquireError
impl From<VulkanError> for AcquireError
sourcefn from(err: VulkanError) -> AcquireError
fn from(err: VulkanError) -> AcquireError
Converts to this type from the input type.
sourceimpl PartialEq<AcquireError> for AcquireError
impl PartialEq<AcquireError> for AcquireError
sourcefn eq(&self, other: &AcquireError) -> bool
fn eq(&self, other: &AcquireError) -> bool
impl Copy for AcquireError
impl Eq for AcquireError
impl StructuralEq for AcquireError
impl StructuralPartialEq for AcquireError
Auto Trait Implementations
impl RefUnwindSafe for AcquireError
impl Send for AcquireError
impl Sync for AcquireError
impl Unpin for AcquireError
impl UnwindSafe for AcquireError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more