pub enum AtxError {
TooShort {
needed: usize,
got: usize,
},
BadMagic,
BadChunk {
tag: String,
offset: usize,
},
ChunkNotFound(&'static str),
PayloadNotFound,
AstcDecode(String),
LzfseDecode(String),
LzfseUnavailable,
Io(Error),
}Expand description
Errors produced while parsing or decoding a .atx file.
Variants§
TooShort
BadMagic
BadChunk
ChunkNotFound(&'static str)
PayloadNotFound
AstcDecode(String)
LzfseDecode(String)
Io(Error)
Trait Implementations§
Source§impl Error for AtxError
impl Error for AtxError
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()
Auto Trait Implementations§
impl Freeze for AtxError
impl !RefUnwindSafe for AtxError
impl Send for AtxError
impl Sync for AtxError
impl Unpin for AtxError
impl UnsafeUnpin for AtxError
impl !UnwindSafe for AtxError
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