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
ZipEarlyEof
Parse(Error)
Deserialize(Error)
Writer(Error)
UnknownToken
InvalidHeader
Trait Implementations§
Source§impl Debug for ImperatorErrorKind
impl Debug for ImperatorErrorKind
Source§impl Display for ImperatorErrorKind
impl Display for ImperatorErrorKind
Source§impl Error for ImperatorErrorKind
impl Error for ImperatorErrorKind
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<ImperatorErrorKind> for ImperatorError
impl From<ImperatorErrorKind> for ImperatorError
Source§fn from(err: ImperatorErrorKind) -> Self
fn from(err: ImperatorErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImperatorErrorKind
impl !RefUnwindSafe for ImperatorErrorKind
impl Send for ImperatorErrorKind
impl Sync for ImperatorErrorKind
impl Unpin for ImperatorErrorKind
impl !UnwindSafe for ImperatorErrorKind
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