pub enum InstanceCreationError {
VulkanError(Result),
LayersNotPresent(SmallVec<CString>),
ExtensionsNotPresent(SmallVec<CString>),
LoaderCreation(LoaderError),
}Expand description
Errors that can occur during instance creation.
Variants§
VulkanError(Result)
Vulkan Error.
LayersNotPresent(SmallVec<CString>)
One or more layers are not present.
ExtensionsNotPresent(SmallVec<CString>)
One or more extensions are not present.
LoaderCreation(LoaderError)
The instance loader creation failed.
Trait Implementations§
Source§impl Debug for InstanceCreationError
impl Debug for InstanceCreationError
Source§impl Display for InstanceCreationError
impl Display for InstanceCreationError
Source§impl Error for InstanceCreationError
impl Error for InstanceCreationError
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<LoaderError> for InstanceCreationError
impl From<LoaderError> for InstanceCreationError
Source§fn from(source: LoaderError) -> Self
fn from(source: LoaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InstanceCreationError
impl RefUnwindSafe for InstanceCreationError
impl Send for InstanceCreationError
impl Sync for InstanceCreationError
impl Unpin for InstanceCreationError
impl UnwindSafe for InstanceCreationError
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