pub enum MapError {
OutOfMemory {
source: OutOfMemory,
},
NonHostVisible,
AlreadyMapped,
MapFailed,
}
Expand description
Possible error that may occur during memory mapping.
Variants§
OutOfMemory
Fields
§
source: OutOfMemory
Device memory is exhausted.
NonHostVisible
Memory is not host-visible.
AlreadyMapped
Memory is already mapped
MapFailed
Map failed for implementation specific reason
Trait Implementations§
source§impl Error for MapError
impl Error for MapError
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<OutOfMemory> for MapError
impl From<OutOfMemory> for MapError
source§fn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Converts to this type from the input type.