Enum z80emu::host::BreakCause
source · pub enum BreakCause<O, R> {
Halt,
WriteIo(O),
Reti(R),
}
Expand description
An enum representing the execution break cause returned by various methods of the Cpu trait.
Variants§
Halt
The HALT
instruction was executed.
WriteIo(O)
Io::write_io requested a break while one of the OUT
family instructions was executed.
Reti(R)
Io::reti requested a break while RETI
was executed.
Trait Implementations§
source§impl<O, R> Display for BreakCause<O, R>
impl<O, R> Display for BreakCause<O, R>
source§impl<O, R> Error for BreakCause<O, R>
impl<O, R> Error for BreakCause<O, R>
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
source§impl<O, R> From<&BreakCause<O, R>> for &str
impl<O, R> From<&BreakCause<O, R>> for &str
source§fn from(cause: &BreakCause<O, R>) -> &'static str
fn from(cause: &BreakCause<O, R>) -> &'static str
Converts to this type from the input type.
source§impl<O, R> From<BreakCause<O, R>> for &str
impl<O, R> From<BreakCause<O, R>> for &str
source§fn from(cause: BreakCause<O, R>) -> &'static str
fn from(cause: BreakCause<O, R>) -> &'static str
Converts to this type from the input type.
Auto Trait Implementations§
impl<O, R> RefUnwindSafe for BreakCause<O, R>where
O: RefUnwindSafe,
R: RefUnwindSafe,
impl<O, R> Send for BreakCause<O, R>
impl<O, R> Sync for BreakCause<O, R>
impl<O, R> Unpin for BreakCause<O, R>
impl<O, R> UnwindSafe for BreakCause<O, R>where
O: UnwindSafe,
R: UnwindSafe,
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