Enum gfx_hal::device::AllocationError
source · pub enum AllocationError {
OutOfMemory(OutOfMemory),
TooManyObjects,
}
Expand description
Possible cause of allocation failure.
Variants
OutOfMemory(OutOfMemory)
Out of either host or device memory.
TooManyObjects
Vulkan implementation doesn’t allow to create too many objects.
Trait Implementations
sourceimpl Clone for AllocationError
impl Clone for AllocationError
sourcefn clone(&self) -> AllocationError
fn clone(&self) -> AllocationError
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 AllocationError
impl Debug for AllocationError
sourceimpl Display for AllocationError
impl Display for AllocationError
sourceimpl Fail for AllocationError
impl Fail for AllocationError
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<OutOfMemory> for AllocationError
impl From<OutOfMemory> for AllocationError
sourcefn from(error: OutOfMemory) -> Self
fn from(error: OutOfMemory) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<AllocationError> for AllocationError
impl PartialEq<AllocationError> for AllocationError
sourcefn eq(&self, other: &AllocationError) -> bool
fn eq(&self, other: &AllocationError) -> bool
impl Copy for AllocationError
impl Eq for AllocationError
impl StructuralEq for AllocationError
impl StructuralPartialEq for AllocationError
Auto Trait Implementations
impl RefUnwindSafe for AllocationError
impl Send for AllocationError
impl Sync for AllocationError
impl Unpin for AllocationError
impl UnwindSafe for AllocationError
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