#[repr(u32)]pub enum KtxError {
Show 18 variants
FileDataError = 1,
FileIsPipe = 2,
FileOpenFailed = 3,
FileOverflow = 4,
FileReadError = 5,
FileSeekError = 6,
FileUnexpectedEof = 7,
FileWriteError = 8,
GlError = 9,
InvalidOperation = 10,
InvalidValue = 11,
NotFound = 12,
OutOfMemory = 13,
TranscodeFailed = 14,
UnknownFileFormat = 15,
UnsupportedTextureType = 16,
UnsupportedFeature = 17,
LibraryNotLinked = 18,
}
Expand description
Error codes as returned from the underlying C library.
Variants§
FileDataError = 1
FileIsPipe = 2
FileOpenFailed = 3
FileOverflow = 4
FileReadError = 5
FileSeekError = 6
FileUnexpectedEof = 7
FileWriteError = 8
GlError = 9
InvalidOperation = 10
InvalidValue = 11
NotFound = 12
OutOfMemory = 13
TranscodeFailed = 14
UnknownFileFormat = 15
UnsupportedTextureType = 16
UnsupportedFeature = 17
LibraryNotLinked = 18
Trait Implementations§
Source§impl Error for KtxError
impl Error for KtxError
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()
impl Copy for KtxError
impl Eq for KtxError
impl StructuralPartialEq for KtxError
Auto Trait Implementations§
impl Freeze for KtxError
impl RefUnwindSafe for KtxError
impl Send for KtxError
impl Sync for KtxError
impl Unpin for KtxError
impl UnwindSafe for KtxError
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