Enum cov::error::ErrorKind
[−]
pub enum ErrorKind { Msg(String), Io(Error), FromUtf8(FromUtf8Error), UnknownFileType(u32), ChecksumMismatch(&'static str), VersionMismatch(Version, Version), Eof, UnknownTag(u32), UnsupportedAttr(&'static str, u32), UnsupportedVersion(u32), WrongFileType(Type, Type, &'static str), MissingFunction(u32, Ident), DuplicatedFunction(u32, Ident), UnexpectedRecordType(&'static str, &'static str), CountsMismatch(&'static str, Type, usize, usize), NoTemplate, }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Io(Error)
FromUtf8(FromUtf8Error)
UnknownFileType(u32)
ChecksumMismatch(&'static str)
VersionMismatch(Version, Version)
Eof
UnknownTag(u32)
UnsupportedAttr(&'static str, u32)
UnsupportedVersion(u32)
WrongFileType(Type, Type, &'static str)
MissingFunction(u32, Ident)
DuplicatedFunction(u32, Ident)
UnexpectedRecordType(&'static str, &'static str)
CountsMismatch(&'static str, Type, usize, usize)
NoTemplate
Methods
impl ErrorKind
fn description(&self) -> &str
A string describing the error kind.