Enum gfx_hal::window::AcquireError
source · [−]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
Fields
timeout: bool
Time has ran out.
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
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 more
sourceimpl Debug for AcquireError
impl Debug for AcquireError
sourceimpl Display for AcquireError
impl Display for AcquireError
sourceimpl Error for AcquireError
impl Error for AcquireError
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 AcquireError
impl From<DeviceLost> for AcquireError
sourcefn from(source: DeviceLost) -> Self
fn from(source: DeviceLost) -> Self
Performs the conversion.
sourceimpl From<OutOfDate> for AcquireError
impl From<OutOfDate> for AcquireError
sourceimpl From<OutOfMemory> for AcquireError
impl From<OutOfMemory> for AcquireError
sourcefn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Performs the conversion.
sourceimpl From<SurfaceLost> for AcquireError
impl From<SurfaceLost> for AcquireError
sourcefn from(source: SurfaceLost) -> Self
fn from(source: SurfaceLost) -> Self
Performs the conversion.
sourceimpl PartialEq<AcquireError> for AcquireError
impl PartialEq<AcquireError> for AcquireError
sourcefn eq(&self, other: &AcquireError) -> bool
fn eq(&self, other: &AcquireError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AcquireError) -> bool
fn ne(&self, other: &AcquireError) -> bool
This method tests for !=
.
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 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