pub enum PrecomputeError {
Io(Error),
BadMagic,
BadVersion(u16),
Consistency(String),
}Expand description
Errors produced by .pksc serialization / deserialization.
Variants§
Io(Error)
Underlying I/O failure during byte-level read/write.
BadMagic
Magic bytes did not match b"PKSC".
BadVersion(u16)
File version is newer than this library knows about.
Consistency(String)
A field value is outside the range this library accepts.
Trait Implementations§
Source§impl Debug for PrecomputeError
impl Debug for PrecomputeError
Source§impl Display for PrecomputeError
impl Display for PrecomputeError
Source§impl Error for PrecomputeError
impl Error for PrecomputeError
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 PrecomputeError
impl !UnwindSafe for PrecomputeError
impl Freeze for PrecomputeError
impl Send for PrecomputeError
impl Sync for PrecomputeError
impl Unpin for PrecomputeError
impl UnsafeUnpin for PrecomputeError
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