pub enum AcquireError {
OutOfMemory(OutOfMemory),
NotReady {
timeout: bool,
},
OutOfDate(OutOfDate),
SurfaceLost(SurfaceLost),
DeviceLost(DeviceLost),
}
Expand description
Error on acquiring the next image from a swapchain.
Variants§
OutOfMemory(OutOfMemory)
Out of either host or device memory.
NotReady
No image was ready and no timeout was specified.
OutOfDate(OutOfDate)
The swapchain is no longer in sync with the surface, needs to be re-created.
SurfaceLost(SurfaceLost)
The surface was lost, and the swapchain is no longer usable.
DeviceLost(DeviceLost)
Device is lost
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)>
Returns 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<DeviceLost> for AcquireError
impl From<DeviceLost> for AcquireError
Source§fn from(source: DeviceLost) -> Self
fn from(source: DeviceLost) -> Self
Converts to this type from the input type.
Source§impl From<OutOfDate> for AcquireError
impl From<OutOfDate> for AcquireError
Source§impl From<OutOfMemory> for AcquireError
impl From<OutOfMemory> for AcquireError
Source§fn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Converts to this type from the input type.
Source§impl From<SurfaceLost> for AcquireError
impl From<SurfaceLost> for AcquireError
Source§fn from(source: SurfaceLost) -> Self
fn from(source: SurfaceLost) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AcquireError
impl PartialEq for AcquireError
impl StructuralPartialEq for AcquireError
Auto Trait Implementations§
impl Freeze for AcquireError
impl RefUnwindSafe for AcquireError
impl Send for AcquireError
impl Sync for AcquireError
impl Unpin for AcquireError
impl UnwindSafe for AcquireError
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