pub enum Ck3ErrorKind {
ZipArchive(ZipError),
ZipMissingEntry,
ZipBadData {
msg: String,
},
ZipEarlyEof {
written: usize,
},
Parse(Error),
Deserialize(Error),
Writer(Error),
UnknownToken {
token_id: u16,
},
InvalidHeader,
InvalidDate(i32),
}Expand description
Specific type of error
Variants§
ZipArchive(ZipError)
ZipMissingEntry
ZipBadData
ZipEarlyEof
Parse(Error)
Deserialize(Error)
Writer(Error)
UnknownToken
InvalidHeader
InvalidDate(i32)
Trait Implementations§
Source§impl Debug for Ck3ErrorKind
impl Debug for Ck3ErrorKind
Source§impl Display for Ck3ErrorKind
impl Display for Ck3ErrorKind
Source§impl Error for Ck3ErrorKind
impl Error for Ck3ErrorKind
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()
Source§impl From<Ck3ErrorKind> for Ck3Error
impl From<Ck3ErrorKind> for Ck3Error
Source§fn from(err: Ck3ErrorKind) -> Self
fn from(err: Ck3ErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Ck3ErrorKind
impl !RefUnwindSafe for Ck3ErrorKind
impl Send for Ck3ErrorKind
impl Sync for Ck3ErrorKind
impl Unpin for Ck3ErrorKind
impl !UnwindSafe for Ck3ErrorKind
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