Enum ck3save::Ck3ErrorKind
source · [−]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
Fields
msg: String
ZipEarlyEof
Fields
written: usize
Parse(Error)
Deserialize(Error)
Writer(Error)
UnknownToken
Fields
token_id: u16
InvalidHeader
InvalidDate(i32)
Trait Implementations
sourceimpl Debug for Ck3ErrorKind
impl Debug for Ck3ErrorKind
sourceimpl Display for Ck3ErrorKind
impl Display for Ck3ErrorKind
sourceimpl Error for Ck3ErrorKind
impl Error for Ck3ErrorKind
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<Ck3ErrorKind> for Ck3Error
impl From<Ck3ErrorKind> for Ck3Error
sourcefn from(err: Ck3ErrorKind) -> Self
fn from(err: Ck3ErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Ck3ErrorKind
impl Send for Ck3ErrorKind
impl Sync for Ck3ErrorKind
impl Unpin for Ck3ErrorKind
impl !UnwindSafe for Ck3ErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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