pub enum PresentError {
OutOfMemory(OutOfMemory),
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.
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 PresentError
impl Clone for PresentError
Source§fn clone(&self) -> PresentError
fn clone(&self) -> PresentError
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 PresentError
impl Debug for PresentError
Source§impl Display for PresentError
impl Display for PresentError
Source§impl Error for PresentError
impl Error for PresentError
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 PresentError
impl From<DeviceLost> for PresentError
Source§fn from(source: DeviceLost) -> Self
fn from(source: DeviceLost) -> Self
Converts to this type from the input type.
Source§impl From<OutOfDate> for PresentError
impl From<OutOfDate> for PresentError
Source§impl From<OutOfMemory> for PresentError
impl From<OutOfMemory> for PresentError
Source§fn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Converts to this type from the input type.
Source§impl From<SurfaceLost> for PresentError
impl From<SurfaceLost> for PresentError
Source§fn from(source: SurfaceLost) -> Self
fn from(source: SurfaceLost) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PresentError
impl PartialEq for PresentError
impl StructuralPartialEq for PresentError
Auto Trait Implementations§
impl Freeze for PresentError
impl RefUnwindSafe for PresentError
impl Send for PresentError
impl Sync for PresentError
impl Unpin for PresentError
impl UnwindSafe for PresentError
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