Enum vulkano::swapchain::AcquireError
source · #[repr(u32)]
pub enum AcquireError {
OomError(OomError),
DeviceLost,
Timeout,
SurfaceLost,
OutOfDate,
}
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.
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.
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 description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
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 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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.