pub enum ExternalResourceError {
OutOfMemory(OutOfMemory),
TooManyObjects,
NoValidMemoryTypeId,
InvalidExternalHandle,
}
Expand description
Error while creating and allocating or importing an external buffer.
Variants§
OutOfMemory(OutOfMemory)
Out of either host or device memory.
TooManyObjects
Cannot create any more objects.
NoValidMemoryTypeId
All the desired memory type ids are invalid for the implementation..
InvalidExternalHandle
Invalid external handle.
Trait Implementations§
Source§impl Clone for ExternalResourceError
impl Clone for ExternalResourceError
Source§fn clone(&self) -> ExternalResourceError
fn clone(&self) -> ExternalResourceError
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 ExternalResourceError
impl Debug for ExternalResourceError
Source§impl Display for ExternalResourceError
impl Display for ExternalResourceError
Source§impl Error for ExternalResourceError
impl Error for ExternalResourceError
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<OutOfMemory> for ExternalResourceError
impl From<OutOfMemory> for ExternalResourceError
Source§fn from(source: OutOfMemory) -> Self
fn from(source: OutOfMemory) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ExternalResourceError
impl PartialEq for ExternalResourceError
impl StructuralPartialEq for ExternalResourceError
Auto Trait Implementations§
impl Freeze for ExternalResourceError
impl RefUnwindSafe for ExternalResourceError
impl Send for ExternalResourceError
impl Sync for ExternalResourceError
impl Unpin for ExternalResourceError
impl UnwindSafe for ExternalResourceError
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