pub enum Error {
Halted(Halt),
Machine(Error),
Objects(Error),
Message(String),
}Expand description
What went wrong.
Variants§
Halted(Halt)
The CPU met an undefined opcode and stopped; it runs again after a reset or a state load.
Machine(Error)
The core refused a request: a ROM of the wrong size, an unusable saved state, a key the model lacks, an unknown model name.
Objects(Error)
Reading user memory, the command line or an object failed: a model
without a memory view, memory the ROM has not set up, an object
that does not decode or encode. Shown with its whole chain
(stack level 1: object truncated at nibble 5).
Message(String)
Anything else (an unknown key or verb, text the model cannot type), as a message for the user.
Trait Implementations§
impl Eq for Error
Source§impl Error for Error
impl Error for Error
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<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Forget for Error
impl Freeze for Error
impl Move for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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