Enum eu4save::Eu4ErrorKind
source · [−]pub enum Eu4ErrorKind {
ZipArchive(ZipError),
ZipBadData {
msg: String,
},
ZipEarlyEof {
written: usize,
},
ZipHeader,
UnknownHeader,
Parse(Error),
Deserialize(Error),
Writer(Error),
UnknownToken {
token_id: u16,
},
CountryTagIncorrectSize,
CountryTagInvalidCharacters,
InvalidDate(i32),
}
Expand description
Specific type of error
Variants
ZipArchive(ZipError)
ZipBadData
Fields
msg: String
ZipEarlyEof
Fields
written: usize
ZipHeader
UnknownHeader
Parse(Error)
Deserialize(Error)
Writer(Error)
UnknownToken
Fields
token_id: u16
CountryTagIncorrectSize
CountryTagInvalidCharacters
InvalidDate(i32)
Trait Implementations
sourceimpl Debug for Eu4ErrorKind
impl Debug for Eu4ErrorKind
sourceimpl Display for Eu4ErrorKind
impl Display for Eu4ErrorKind
sourceimpl Error for Eu4ErrorKind
impl Error for Eu4ErrorKind
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<Eu4ErrorKind> for Eu4Error
impl From<Eu4ErrorKind> for Eu4Error
sourcefn from(err: Eu4ErrorKind) -> Self
fn from(err: Eu4ErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Eu4ErrorKind
impl Send for Eu4ErrorKind
impl Sync for Eu4ErrorKind
impl Unpin for Eu4ErrorKind
impl !UnwindSafe for Eu4ErrorKind
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