pub enum CallError {
EnumerationUnstable {
attempts: u32,
},
InitializationFailed(InitializationFailure),
Vulkan(Result),
MissingCommand(&'static str),
InvalidMetadata(&'static str),
FeatureNotEnabled {
structure: StructureType,
member: &'static str,
},
HostAllocationFailed,
InvalidOutput(&'static str),
CountOverflow(usize),
SliceLengthMismatch {
parameter: &'static str,
expected: usize,
actual: usize,
},
}Expand description
A Vulkan driver failure or a missing command (entry, instance or device level).
Variants§
EnumerationUnstable
The native enumeration did not stabilize within the bounded retry budget.
InitializationFailed(InitializationFailure)
Native creation succeeded but cleanup could not be resolved. Handle this variant explicitly to recover the still-live object and retained library.
Vulkan(Result)
MissingCommand(&'static str)
InvalidMetadata(&'static str)
Invalid caller-supplied creation/import metadata; no native effect occurred.
FeatureNotEnabled
A required exact feature-record member is disabled or unrecorded.
HostAllocationFailed
InvalidOutput(&'static str)
CountOverflow(usize)
SliceLengthMismatch
An output/parallel slice does not match its native input count.
Trait Implementations§
Source§impl Error for CallError
impl Error for CallError
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<CallError> for AllocError
impl From<CallError> for AllocError
impl StructuralPartialEq for CallError
Auto Trait Implementations§
impl Freeze for CallError
impl RefUnwindSafe for CallError
impl Send for CallError
impl Sync for CallError
impl Unpin for CallError
impl UnsafeUnpin for CallError
impl UnwindSafe for CallError
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