Enum gfx_hal::error::HostExecutionError
source · pub enum HostExecutionError {
OutOfHostMemory,
OutOfDeviceMemory,
DeviceLost,
}
Expand description
Errors during execution of operations on the host side.
Variants
OutOfHostMemory
Memory allocation on the host side failed. This could be caused by a lack of memory.
OutOfDeviceMemory
Memory allocation on the device side failed. This could be caused by a lack of memory.
DeviceLost
The logical or physical device are lost during the device creation process.
This may be caused by hardware failure, physical device removal, power outage, etc.
Trait Implementations
sourceimpl Clone for HostExecutionError
impl Clone for HostExecutionError
sourcefn clone(&self) -> HostExecutionError
fn clone(&self) -> HostExecutionError
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 HostExecutionError
impl Debug for HostExecutionError
sourceimpl Display for HostExecutionError
impl Display for HostExecutionError
sourceimpl Fail for HostExecutionError
impl Fail for HostExecutionError
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 PartialEq<HostExecutionError> for HostExecutionError
impl PartialEq<HostExecutionError> for HostExecutionError
sourcefn eq(&self, other: &HostExecutionError) -> bool
fn eq(&self, other: &HostExecutionError) -> bool
impl Eq for HostExecutionError
impl StructuralEq for HostExecutionError
impl StructuralPartialEq for HostExecutionError
Auto Trait Implementations
impl RefUnwindSafe for HostExecutionError
impl Send for HostExecutionError
impl Sync for HostExecutionError
impl Unpin for HostExecutionError
impl UnwindSafe for HostExecutionError
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