Enum vulkano::swapchain::PresentWaitError
source · #[repr(u32)]
pub enum PresentWaitError {
OomError(OomError),
DeviceLost,
OutOfDate,
SurfaceLost,
FullScreenExclusiveModeLost,
Timeout,
RequirementNotMet {
required_for: &'static str,
requires_one_of: RequiresOneOf,
},
PresentIdZero,
}
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.
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.
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.
Timeout
The timeout of the function has been reached before the present occured.
RequirementNotMet
PresentIdZero
Present id of zero is invalid.
Trait Implementations
sourceimpl Clone for PresentWaitError
impl Clone for PresentWaitError
sourcefn clone(&self) -> PresentWaitError
fn clone(&self) -> PresentWaitError
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 PresentWaitError
impl Debug for PresentWaitError
sourceimpl Display for PresentWaitError
impl Display for PresentWaitError
sourceimpl Error for PresentWaitError
impl Error for PresentWaitError
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<OomError> for PresentWaitError
impl From<OomError> for PresentWaitError
sourcefn from(err: OomError) -> PresentWaitError
fn from(err: OomError) -> PresentWaitError
Converts to this type from the input type.
sourceimpl From<VulkanError> for PresentWaitError
impl From<VulkanError> for PresentWaitError
sourcefn from(err: VulkanError) -> PresentWaitError
fn from(err: VulkanError) -> PresentWaitError
Converts to this type from the input type.
sourceimpl PartialEq<PresentWaitError> for PresentWaitError
impl PartialEq<PresentWaitError> for PresentWaitError
sourcefn eq(&self, other: &PresentWaitError) -> bool
fn eq(&self, other: &PresentWaitError) -> bool
impl Copy for PresentWaitError
impl Eq for PresentWaitError
impl StructuralEq for PresentWaitError
impl StructuralPartialEq for PresentWaitError
Auto Trait Implementations
impl RefUnwindSafe for PresentWaitError
impl Send for PresentWaitError
impl Sync for PresentWaitError
impl Unpin for PresentWaitError
impl UnwindSafe for PresentWaitError
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