pub struct EventBreakHit {
pub kind: EventBpKind,
pub addr: u16,
pub frame: u64,
pub cycle: u64,
pub scanline: i16,
pub dot: u16,
}Expand description
v1.4.0 Workstream D (D2) — one event-driven breakpoint hit.
Carries the kind, the associated address (0 for the interrupt entries that
carry none), and the full timing context (frame / CPU cycle / PPU
scanline+dot) at the moment of the event. Recorded by the first armed-event
tap of a frame; the frontend takes it via
crate::Nes::take_event_break_hit to pause + report.
Fields§
§kind: EventBpKindWhich event fired.
addr: u16The associated CPU address (the read/write address, the OAM-DMA $4014,
the DMC sample address, or the service vector for NMI/IRQ).
frame: u64PPU frame counter at the event.
cycle: u64Cumulative CPU cycle at the event.
scanline: i16PPU scanline (-1 pre-render .. 260).
dot: u16PPU dot (0..=340).
Trait Implementations§
Source§impl Clone for EventBreakHit
impl Clone for EventBreakHit
Source§fn clone(&self) -> EventBreakHit
fn clone(&self) -> EventBreakHit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventBreakHit
impl Debug for EventBreakHit
Source§impl PartialEq for EventBreakHit
impl PartialEq for EventBreakHit
impl Copy for EventBreakHit
impl Eq for EventBreakHit
impl StructuralPartialEq for EventBreakHit
Auto Trait Implementations§
impl Freeze for EventBreakHit
impl RefUnwindSafe for EventBreakHit
impl Send for EventBreakHit
impl Sync for EventBreakHit
impl Unpin for EventBreakHit
impl UnsafeUnpin for EventBreakHit
impl UnwindSafe for EventBreakHit
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