Enum vulkano::memory::DeviceMemoryAllocError
source · pub enum DeviceMemoryAllocError {
OomError(OomError),
TooManyObjects,
MemoryMapFailed,
}
Expand description
Error type returned by functions related to DeviceMemory
.
Variants
OomError(OomError)
Not enough memory available.
TooManyObjects
The maximum number of allocations has been exceeded.
MemoryMapFailed
Memory map failed.
Trait Implementations
sourceimpl Clone for DeviceMemoryAllocError
impl Clone for DeviceMemoryAllocError
sourcefn clone(&self) -> DeviceMemoryAllocError
fn clone(&self) -> DeviceMemoryAllocError
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 DeviceMemoryAllocError
impl Debug for DeviceMemoryAllocError
sourceimpl Display for DeviceMemoryAllocError
impl Display for DeviceMemoryAllocError
sourceimpl Error for DeviceMemoryAllocError
impl Error for DeviceMemoryAllocError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<DeviceMemoryAllocError> for ImageCreationError
impl From<DeviceMemoryAllocError> for ImageCreationError
sourcefn from(err: DeviceMemoryAllocError) -> ImageCreationError
fn from(err: DeviceMemoryAllocError) -> ImageCreationError
Converts to this type from the input type.
sourceimpl From<OomError> for DeviceMemoryAllocError
impl From<OomError> for DeviceMemoryAllocError
sourcefn from(err: OomError) -> DeviceMemoryAllocError
fn from(err: OomError) -> DeviceMemoryAllocError
Converts to this type from the input type.
sourceimpl PartialEq<DeviceMemoryAllocError> for DeviceMemoryAllocError
impl PartialEq<DeviceMemoryAllocError> for DeviceMemoryAllocError
sourcefn eq(&self, other: &DeviceMemoryAllocError) -> bool
fn eq(&self, other: &DeviceMemoryAllocError) -> bool
impl Copy for DeviceMemoryAllocError
impl Eq for DeviceMemoryAllocError
impl StructuralEq for DeviceMemoryAllocError
impl StructuralPartialEq for DeviceMemoryAllocError
Auto Trait Implementations
impl RefUnwindSafe for DeviceMemoryAllocError
impl Send for DeviceMemoryAllocError
impl Sync for DeviceMemoryAllocError
impl Unpin for DeviceMemoryAllocError
impl UnwindSafe for DeviceMemoryAllocError
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.