pub enum ParseError {
Io(Error),
Utf8Error(FromUtf8Error),
InvalidData,
MalformedHeader,
UnknownRevision(u8),
UnknownStateChange(u8),
InvalidZip(ZipError),
}
Expand description
Any error that can occur during parsing.
Variants
Io(Error)
The error stems from an underlying input/output error.
Utf8Error(FromUtf8Error)
The error is caused by invalid UTF-8 data in the file.
Names in the evtc are expected to be encoded with UTF-8.
InvalidData
A generic error to signal invalid data has been encountered.
MalformedHeader
The header is malformed.
This is the error that you get when you try to parse a non-evtc file.
UnknownRevision(u8)
The revision used by the file is not known.
UnknownStateChange(u8)
The event contains a statechange that we don’t know about.
InvalidZip(ZipError)
The given ZIP archive is invalid.
Trait Implementations
sourceimpl Debug for ParseError
impl Debug for ParseError
sourceimpl Display for ParseError
impl Display for ParseError
sourceimpl Error for ParseError
impl Error for ParseError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Error> for ParseError
impl From<Error> for ParseError
sourceimpl From<FromUtf8Error> for ParseError
impl From<FromUtf8Error> for ParseError
sourcefn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
sourceimpl From<ParseError> for EvtcError
impl From<ParseError> for EvtcError
sourcefn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more