pub enum AntError {
Io(Error),
Json {
line: u64,
err: String,
},
NotAnt(String),
Version(String),
Integrity(String),
}Expand description
Everything that can go wrong reading or writing a .ant stream.
Variants§
Io(Error)
Underlying I/O failure.
Json
A line failed to parse as JSON.
NotAnt(String)
The input is not a .ant container (bad framing, missing or
malformed manifest, misplaced trailer).
Version(String)
Refused by the compatibility policy. The message says WHICH rule refused it — “version mismatch” alone leaves the reader guessing whether to upgrade, re-export, or file a bug.
Integrity(String)
Trailer verification failed: hash or counts do not match the records actually read (truncation or tampering).
Trait Implementations§
Source§impl Error for AntError
impl Error for AntError
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 AntError
impl !UnwindSafe for AntError
impl Freeze for AntError
impl Send for AntError
impl Sync for AntError
impl Unpin for AntError
impl UnsafeUnpin for AntError
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