pub enum HeapsError {
AllocationError(AllocationError),
NoSuitableMemory(u32, Properties),
}
Expand description
Possible errors returned by Heaps
.
Variants§
AllocationError(AllocationError)
Memory allocation failure.
NoSuitableMemory(u32, Properties)
No memory types among required for resource with requested properties was found.
Trait Implementations§
Source§impl Clone for HeapsError
impl Clone for HeapsError
Source§fn clone(&self) -> HeapsError
fn clone(&self) -> HeapsError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HeapsError
impl Debug for HeapsError
Source§impl Display for HeapsError
impl Display for HeapsError
Source§impl Error for HeapsError
impl Error for HeapsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AllocationError> for HeapsError
impl From<AllocationError> for HeapsError
Source§fn from(error: AllocationError) -> Self
fn from(error: AllocationError) -> Self
Converts to this type from the input type.
Source§impl From<OutOfMemory> for HeapsError
impl From<OutOfMemory> for HeapsError
Source§fn from(error: OutOfMemory) -> Self
fn from(error: OutOfMemory) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HeapsError
impl PartialEq for HeapsError
impl StructuralPartialEq for HeapsError
Auto Trait Implementations§
impl Freeze for HeapsError
impl RefUnwindSafe for HeapsError
impl Send for HeapsError
impl Sync for HeapsError
impl Unpin for HeapsError
impl UnwindSafe for HeapsError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)