pub enum AscheError {
Show 20 variants
IoError(Error),
NulError(NulError),
Utf8Error(Utf8Error),
TryFromIntError(TryFromIntError),
EntryLoaderError(EntryLoaderError),
LoaderError(LoaderError),
VkAllocError(AllocatorError),
VkResult(Result),
DebugUtilsMissing,
RequestDeviceError,
QueueFamilyNotFound(String),
SwapchainFormatIncompatible,
DeviceFeatureMissing,
PresentationModeUnsupported,
SwapchainNotInitialized,
BufferZeroSize,
NoQueueConfigured,
QueueCountTooHigh(usize),
MissingWaitSemaphore,
MissingSignalSemaphore,
}Expand description
Errors that asche can throw.
Variants§
IoError(Error)
A std::io::Error.
NulError(NulError)
A std::ffi::NulError.
Utf8Error(Utf8Error)
A std::str::Utf8Error.
TryFromIntError(TryFromIntError)
A TryFromIntError.
EntryLoaderError(EntryLoaderError)
A erupt::utils::loading::EntryLoaderError.
LoaderError(LoaderError)
A erupt::LoaderError.
VkAllocError(AllocatorError)
A vk_alloc::AllocatorError.
VkResult(Result)
A VKResult error.
DebugUtilsMissing
Can’t load the debug utils extension.
RequestDeviceError
The requested device type couldn’t be found.
QueueFamilyNotFound(String)
Can’t find a queue family.
SwapchainFormatIncompatible
The selected format / color space for the swapchain is not supported by the device.
DeviceFeatureMissing
The requested device feature couldn’t be found.
PresentationModeUnsupported
The selected presentation mode is unsupported.
SwapchainNotInitialized
Swapchain is not initialized.
BufferZeroSize
The requested buffer has a size of zero.
NoQueueConfigured
No queue was configured.
QueueCountTooHigh(usize)
Queue count too high.
MissingWaitSemaphore
Missing wait semaphore,
MissingSignalSemaphore
Missing signal semaphore,
Trait Implementations§
Source§impl Debug for AscheError
impl Debug for AscheError
Source§impl Display for AscheError
impl Display for AscheError
Source§impl Error for AscheError
impl Error for AscheError
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<AllocatorError> for AscheError
impl From<AllocatorError> for AscheError
Source§fn from(err: AllocatorError) -> AscheError
fn from(err: AllocatorError) -> AscheError
Converts to this type from the input type.
Source§impl From<EntryLoaderError> for AscheError
impl From<EntryLoaderError> for AscheError
Source§fn from(err: EntryLoaderError) -> AscheError
fn from(err: EntryLoaderError) -> AscheError
Converts to this type from the input type.
Source§impl From<Error> for AscheError
impl From<Error> for AscheError
Source§fn from(err: Error) -> AscheError
fn from(err: Error) -> AscheError
Converts to this type from the input type.
Source§impl From<LoaderError> for AscheError
impl From<LoaderError> for AscheError
Source§fn from(err: LoaderError) -> AscheError
fn from(err: LoaderError) -> AscheError
Converts to this type from the input type.
Source§impl From<NulError> for AscheError
impl From<NulError> for AscheError
Source§fn from(err: NulError) -> AscheError
fn from(err: NulError) -> AscheError
Converts to this type from the input type.
Source§impl From<Result> for AscheError
impl From<Result> for AscheError
Source§fn from(err: Result) -> AscheError
fn from(err: Result) -> AscheError
Converts to this type from the input type.
Source§impl From<TryFromIntError> for AscheError
impl From<TryFromIntError> for AscheError
Source§fn from(err: TryFromIntError) -> AscheError
fn from(err: TryFromIntError) -> AscheError
Converts to this type from the input type.
Source§impl From<Utf8Error> for AscheError
impl From<Utf8Error> for AscheError
Source§fn from(err: Utf8Error) -> AscheError
fn from(err: Utf8Error) -> AscheError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AscheError
impl !RefUnwindSafe for AscheError
impl Send for AscheError
impl Sync for AscheError
impl Unpin for AscheError
impl !UnwindSafe for AscheError
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