pub enum SnssError {
BadMagic([u8; 4]),
UnsupportedVersion(i32),
Io(Error),
}Expand description
A fatal error that prevents producing any model at all.
Variants§
BadMagic([u8; 4])
The first four bytes were not SNSS.
UnsupportedVersion(i32)
The header declared a container version this decoder does not support.
Io(Error)
An I/O error reading the header (record-stream truncation is not an
error — it is reported as a [WarningKind::TruncatedTail]).
Trait Implementations§
Source§impl Error for SnssError
impl Error for SnssError
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 !RefUnwindSafe for SnssError
impl !UnwindSafe for SnssError
impl Freeze for SnssError
impl Send for SnssError
impl Sync for SnssError
impl Unpin for SnssError
impl UnsafeUnpin for SnssError
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