Skip to main content

EventBreakHit

Struct EventBreakHit 

Source
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: EventBpKind

Which event fired.

§addr: u16

The associated CPU address (the read/write address, the OAM-DMA $4014, the DMC sample address, or the service vector for NMI/IRQ).

§frame: u64

PPU frame counter at the event.

§cycle: u64

Cumulative CPU cycle at the event.

§scanline: i16

PPU scanline (-1 pre-render .. 260).

§dot: u16

PPU dot (0..=340).

Trait Implementations§

Source§

impl Clone for EventBreakHit

Source§

fn clone(&self) -> EventBreakHit

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for EventBreakHit

Source§

impl Debug for EventBreakHit

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for EventBreakHit

Source§

impl PartialEq for EventBreakHit

Source§

fn eq(&self, other: &EventBreakHit) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for EventBreakHit

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.