Enum gfx_hal::window::PresentError
source · [−]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
sourceimpl Clone for PresentError
impl Clone for PresentError
sourcefn clone(&self) -> PresentError
fn clone(&self) -> PresentError
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 more
sourceimpl Debug for PresentError
impl Debug for PresentError
sourceimpl Display for PresentError
impl Display for PresentError
sourceimpl Error for PresentError
impl Error for PresentError
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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<DeviceLost> for PresentError
impl From<DeviceLost> for PresentError
sourcefn from(source: DeviceLost) -> Self
fn from(source: DeviceLost) -> Self
Performs the conversion.
sourceimpl From<OutOfDate> for PresentError
impl From<OutOfDate> for PresentError
sourceimpl From<OutOfMemory> for PresentError
impl From<OutOfMemory> for PresentError
sourcefn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Performs the conversion.
sourceimpl From<SurfaceLost> for PresentError
impl From<SurfaceLost> for PresentError
sourcefn from(source: SurfaceLost) -> Self
fn from(source: SurfaceLost) -> Self
Performs the conversion.
sourceimpl PartialEq<PresentError> for PresentError
impl PartialEq<PresentError> for PresentError
sourcefn eq(&self, other: &PresentError) -> bool
fn eq(&self, other: &PresentError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PresentError) -> bool
fn ne(&self, other: &PresentError) -> bool
This method tests for !=
.
impl StructuralPartialEq for PresentError
Auto Trait Implementations
impl RefUnwindSafe for PresentError
impl Send for PresentError
impl Sync for PresentError
impl Unpin for PresentError
impl UnwindSafe for PresentError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more