Enum gfx_hal::device::OomOrDeviceLost
source · pub enum OomOrDeviceLost {
OutOfMemory(OutOfMemory),
DeviceLost(DeviceLost),
}
Expand description
Error occurred caused device to be lost or out of memory error.
Variants
OutOfMemory(OutOfMemory)
Out of either host or device memory.
DeviceLost(DeviceLost)
Device is lost
Trait Implementations
sourceimpl Clone for OomOrDeviceLost
impl Clone for OomOrDeviceLost
sourcefn clone(&self) -> OomOrDeviceLost
fn clone(&self) -> OomOrDeviceLost
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 moresourceimpl Debug for OomOrDeviceLost
impl Debug for OomOrDeviceLost
sourceimpl Display for OomOrDeviceLost
impl Display for OomOrDeviceLost
sourceimpl Fail for OomOrDeviceLost
impl Fail for OomOrDeviceLost
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl From<DeviceLost> for OomOrDeviceLost
impl From<DeviceLost> for OomOrDeviceLost
sourcefn from(error: DeviceLost) -> Self
fn from(error: DeviceLost) -> Self
Converts to this type from the input type.
sourceimpl From<OutOfMemory> for OomOrDeviceLost
impl From<OutOfMemory> for OomOrDeviceLost
sourcefn from(error: OutOfMemory) -> Self
fn from(error: OutOfMemory) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<OomOrDeviceLost> for OomOrDeviceLost
impl PartialEq<OomOrDeviceLost> for OomOrDeviceLost
sourcefn eq(&self, other: &OomOrDeviceLost) -> bool
fn eq(&self, other: &OomOrDeviceLost) -> bool
impl Copy for OomOrDeviceLost
impl Eq for OomOrDeviceLost
impl StructuralEq for OomOrDeviceLost
impl StructuralPartialEq for OomOrDeviceLost
Auto Trait Implementations
impl RefUnwindSafe for OomOrDeviceLost
impl Send for OomOrDeviceLost
impl Sync for OomOrDeviceLost
impl Unpin for OomOrDeviceLost
impl UnwindSafe for OomOrDeviceLost
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more