pub enum InstanceError {
VulkanUnavailable,
VulkanVersionUnavailable(String),
VulkanVersion11Unavailable,
VulkanVersion12Unavailable,
VulkanVersion13Unavailable,
FailedCreateInstance,
FailedCreateDebugMessenger,
RequestedLayersNotPresent(Vec<String>),
RequestedExtensionsNotPresent(Vec<String>),
WindowingExtensionsNotPresent(Vec<String>),
}
Variants§
FailedCreateInstance
FailedCreateDebugMessenger
RequestedLayersNotPresent(Vec<String>)
RequestedExtensionsNotPresent(Vec<String>)
WindowingExtensionsNotPresent(Vec<String>)
Trait Implementations§
Source§impl Debug for InstanceError
impl Debug for InstanceError
Source§impl Display for InstanceError
impl Display for InstanceError
Source§impl Error for InstanceError
impl Error for InstanceError
1.30.0 · 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<InstanceError> for Error
impl From<InstanceError> for Error
Source§fn from(source: InstanceError) -> Self
fn from(source: InstanceError) -> Self
Converts to this type from the input type.
Source§impl Ord for InstanceError
impl Ord for InstanceError
Source§fn cmp(&self, other: &InstanceError) -> Ordering
fn cmp(&self, other: &InstanceError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InstanceError
impl PartialEq for InstanceError
Source§impl PartialOrd for InstanceError
impl PartialOrd for InstanceError
impl Eq for InstanceError
impl StructuralPartialEq for InstanceError
Auto Trait Implementations§
impl Freeze for InstanceError
impl RefUnwindSafe for InstanceError
impl Send for InstanceError
impl Sync for InstanceError
impl Unpin for InstanceError
impl UnwindSafe for InstanceError
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