Enum gfx_hal::window::PresentError [−][src]
pub enum PresentError { OutOfMemory(OutOfMemory), OutOfDate(OutOfDate), SurfaceLost(SurfaceLost), DeviceLost(DeviceLost), }
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
impl Clone for PresentError
[src]
impl Clone for PresentError
[src]fn clone(&self) -> PresentError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Error for PresentError
[src]
impl Error for PresentError
[src]impl From<DeviceLost> for PresentError
[src]
impl From<DeviceLost> for PresentError
[src]fn from(source: DeviceLost) -> Self
[src]
impl From<OutOfMemory> for PresentError
[src]
impl From<OutOfMemory> for PresentError
[src]fn from(source: OutOfMemory) -> Self
[src]
impl From<SurfaceLost> for PresentError
[src]
impl From<SurfaceLost> for PresentError
[src]fn from(source: SurfaceLost) -> Self
[src]
impl PartialEq<PresentError> for PresentError
[src]
impl PartialEq<PresentError> for PresentError
[src]fn eq(&self, other: &PresentError) -> bool
[src]
fn ne(&self, other: &PresentError) -> bool
[src]
impl StructuralPartialEq for PresentError
[src]
impl StructuralPartialEq for PresentError
[src]Auto Trait Implementations
impl RefUnwindSafe for PresentError
impl RefUnwindSafe for PresentError
impl Send for PresentError
impl Send for PresentError
impl Sync for PresentError
impl Sync for PresentError
impl Unpin for PresentError
impl Unpin for PresentError
impl UnwindSafe for PresentError
impl UnwindSafe for PresentError