Enum gpu_alloc::MapError [−][src]
pub enum MapError { OutOfDeviceMemory, OutOfHostMemory, NonHostVisible, MapFailed, AlreadyMapped, }
Expand description
Enumeration of possible errors that may occur during memory mapping.
Variants
Backend reported that device memory has been exhausted.
Deallocating device memory from the same heap may increase chance
that another mapping would succeed.
Backend reported that host memory has been exhausted.
Deallocating host memory may increase chance that another mapping would succeed.
Attempt to map memory block with non-host-visible memory type.
Ensure to include UsageFlags::HOST_ACCESS
into allocation request
when memory mapping is intended.
Map failed for implementation specific reason.
For Vulkan backend this includes failed attempt
to allocate large enough virtual address space.
Mapping failed due to block being already mapped.
Trait Implementations
impl Error for MapError
[src]
impl Error for MapError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl From<DeviceMapError> for MapError
[src]
impl From<DeviceMapError> for MapError
[src]fn from(err: DeviceMapError) -> Self
[src]
fn from(err: DeviceMapError) -> Self
[src]Performs the conversion.
impl From<OutOfMemory> for MapError
[src]
impl From<OutOfMemory> for MapError
[src]fn from(err: OutOfMemory) -> Self
[src]
fn from(err: OutOfMemory) -> Self
[src]Performs the conversion.
impl Copy for MapError
[src]
impl Eq for MapError
[src]
impl StructuralEq for MapError
[src]
impl StructuralPartialEq for MapError
[src]
Auto Trait Implementations
impl RefUnwindSafe for MapError
impl Send for MapError
impl Sync for MapError
impl Unpin for MapError
impl UnwindSafe for MapError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more