pub enum ImperatorErrorKind {
ZipCentralDirectory(ZipError),
ZipMissingEntry(&'static str, ZipError),
ZipExtraction(&'static str, IoError),
ZipSize(&'static str),
IoErr(IoError),
UnknownHeader,
UnknownToken {
token_id: u16,
},
Deserialize {
part: Option<String>,
err: Error,
},
}
Expand description
Specific type of error
Variants
ZipCentralDirectory(ZipError)
ZipMissingEntry(&'static str, ZipError)
ZipExtraction(&'static str, IoError)
ZipSize(&'static str)
IoErr(IoError)
UnknownHeader
UnknownToken
Fields
token_id: u16
Deserialize
Trait Implementations
sourceimpl Debug for ImperatorErrorKind
impl Debug for ImperatorErrorKind
sourceimpl From<ImperatorErrorKind> for ImperatorError
impl From<ImperatorErrorKind> for ImperatorError
sourcefn from(err: ImperatorErrorKind) -> Self
fn from(err: ImperatorErrorKind) -> Self
Performs the conversion.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more