pub enum ShellErrorKind {
Magic,
Bytes,
ConstantPool,
Budget,
InvalidIndex,
TrailingBytes,
Edit,
}Expand description
Stable failure category for shell decoding and validation.
Variants§
Magic
The classfile magic was not CAFEBABE.
Bytes
The bounded byte lane failed.
ConstantPool
Constant-pool decoding or validation failed.
Budget
A collection or retained attribute body exceeded its shell budget.
InvalidIndex
A raw index was zero, outside the pool, unusable, or of the wrong category.
TrailingBytes
Bytes remained after the complete class shell.
Edit
A requested checked edit cannot be applied to this shell.
Trait Implementations§
Source§impl Clone for ShellErrorKind
impl Clone for ShellErrorKind
Source§fn clone(&self) -> ShellErrorKind
fn clone(&self) -> ShellErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ShellErrorKind
Source§impl Debug for ShellErrorKind
impl Debug for ShellErrorKind
impl Eq for ShellErrorKind
Source§impl PartialEq for ShellErrorKind
impl PartialEq for ShellErrorKind
impl StructuralPartialEq for ShellErrorKind
Auto Trait Implementations§
impl Freeze for ShellErrorKind
impl RefUnwindSafe for ShellErrorKind
impl Send for ShellErrorKind
impl Sync for ShellErrorKind
impl Unpin for ShellErrorKind
impl UnsafeUnpin for ShellErrorKind
impl UnwindSafe for ShellErrorKind
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