pub enum ImperatorErrorKind {
ZipArchive(ZipError),
ZipMissingEntry,
ZipBadData {
msg: String,
},
ZipEarlyEof {
written: usize,
},
Parse(Error),
Deserialize(Error),
Writer(Error),
UnknownToken {
token_id: u16,
},
InvalidHeader,
}
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
Trait Implementations
sourceimpl Debug for ImperatorErrorKind
impl Debug for ImperatorErrorKind
sourceimpl Display for ImperatorErrorKind
impl Display for ImperatorErrorKind
sourceimpl Error for ImperatorErrorKind
impl Error for ImperatorErrorKind
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<ImperatorErrorKind> for ImperatorError
impl From<ImperatorErrorKind> for ImperatorError
sourcefn from(err: ImperatorErrorKind) -> Self
fn from(err: ImperatorErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for ImperatorErrorKind
impl Send for ImperatorErrorKind
impl Sync for ImperatorErrorKind
impl Unpin for ImperatorErrorKind
impl !UnwindSafe for ImperatorErrorKind
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