Enum vulkano::memory::MemoryMapError
source · pub enum MemoryMapError {
OomError(OomError),
MemoryMapFailed,
NotHostVisible,
OutOfRange {
provided_range: Range<DeviceSize>,
allowed_range: Range<DeviceSize>,
},
RangeNotAlignedToAtomSize {
range: Range<DeviceSize>,
atom_size: DeviceSize,
},
}
Expand description
Error type returned by functions related to DeviceMemory
.
Variants
OomError(OomError)
Not enough memory available.
MemoryMapFailed
Memory map failed.
NotHostVisible
Tried to map memory whose type is not host-visible.
OutOfRange
The specified range
is not contained within the allocated or mapped memory range.
RangeNotAlignedToAtomSize
The memory is not host-coherent, and the specified range
bounds are not a multiple of the
non_coherent_atom_size
device
property.
Trait Implementations
sourceimpl Clone for MemoryMapError
impl Clone for MemoryMapError
sourcefn clone(&self) -> MemoryMapError
fn clone(&self) -> MemoryMapError
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 MemoryMapError
impl Debug for MemoryMapError
sourceimpl Display for MemoryMapError
impl Display for MemoryMapError
sourceimpl Error for MemoryMapError
impl Error for MemoryMapError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<MemoryMapError> for DeviceMemoryError
impl From<MemoryMapError> for DeviceMemoryError
sourcefn from(err: MemoryMapError) -> Self
fn from(err: MemoryMapError) -> Self
Converts to this type from the input type.
sourceimpl From<OomError> for MemoryMapError
impl From<OomError> for MemoryMapError
sourceimpl From<VulkanError> for MemoryMapError
impl From<VulkanError> for MemoryMapError
sourcefn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<MemoryMapError> for MemoryMapError
impl PartialEq<MemoryMapError> for MemoryMapError
sourcefn eq(&self, other: &MemoryMapError) -> bool
fn eq(&self, other: &MemoryMapError) -> bool
impl Eq for MemoryMapError
impl StructuralEq for MemoryMapError
impl StructuralPartialEq for MemoryMapError
Auto Trait Implementations
impl RefUnwindSafe for MemoryMapError
impl Send for MemoryMapError
impl Sync for MemoryMapError
impl Unpin for MemoryMapError
impl UnwindSafe for MemoryMapError
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