pub struct WriteLog {
pub enabled: bool,
/* private fields */
}Expand description
The debugger’s optional per-write log (rusty2600-frontend’s
debug-hooks feature enables it while the debugger overlay is open).
Disabled by default — near-zero cost when off (one bool check per
write). Deliberately #[serde(skip)] on Bus: this is debug-tooling
state, not part of the emulator’s real state, and must never end up in a
save-state (see docs/adr/0007-save-state-versioning.md).
Fields§
§enabled: boolWhether writes are currently being recorded.
Implementations§
Source§impl WriteLog
impl WriteLog
Sourcepub fn events(&self) -> &[WriteEvent]
pub fn events(&self) -> &[WriteEvent]
The events recorded since the last Self::clear, oldest first.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WriteLog
impl RefUnwindSafe for WriteLog
impl Send for WriteLog
impl Sync for WriteLog
impl Unpin for WriteLog
impl UnsafeUnpin for WriteLog
impl UnwindSafe for WriteLog
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