pub enum IcdError {
InvalidString(NulError),
LibraryLoadFailed(String),
MissingFunction(&'static str),
InvalidManifest(String),
NoManifestsFound,
MutexPoisoned,
InvalidPath(String),
VulkanError(VkResult),
InvalidOperation(&'static str),
NoIcdLoaded,
}Expand description
Errors that can occur in the ICD loader
Variants§
InvalidString(NulError)
Failed to create CString (contains null byte)
LibraryLoadFailed(String)
Failed to load dynamic library
MissingFunction(&'static str)
Required function not found in library
InvalidManifest(String)
Failed to parse ICD manifest
NoManifestsFound
No ICD manifest files found
MutexPoisoned
Mutex was poisoned
InvalidPath(String)
Path has no parent directory
VulkanError(VkResult)
Vulkan API error
InvalidOperation(&'static str)
Invalid operation
NoIcdLoaded
No ICD loaded
Trait Implementations§
Source§impl Error for IcdError
impl Error for IcdError
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<IcdError> for KronosError
impl From<IcdError> for KronosError
Source§impl From<IcdError> for KronosError
impl From<IcdError> for KronosError
Source§impl<T> From<PoisonError<T>> for IcdError
impl<T> From<PoisonError<T>> for IcdError
Source§fn from(_: PoisonError<T>) -> Self
fn from(_: PoisonError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IcdError
impl RefUnwindSafe for IcdError
impl Send for IcdError
impl Sync for IcdError
impl Unpin for IcdError
impl UnwindSafe for IcdError
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