pub struct FrontendRuntime { /* private fields */ }Implementations§
Source§impl FrontendRuntime
impl FrontendRuntime
pub fn new(nes: NES) -> Self
pub fn from_rom_bytes(rom: &[u8]) -> Result<Self, CartridgeError>
pub fn mode(&self) -> RunMode
pub fn nes(&self) -> &NES
pub fn nes_mut(&mut self) -> &mut NES
pub fn save_state(&self) -> Result<Vec<u8>, SaveStateError>
pub fn load_state(&mut self, bytes: &[u8]) -> Result<(), SaveStateError>
pub fn set_mode(&mut self, mode: RunMode)
pub fn snapshot(&self) -> RuntimeSnapshot<'_>
pub fn step(&mut self, input: FrontendInput) -> RuntimeSnapshot<'_>
Auto Trait Implementations§
impl !RefUnwindSafe for FrontendRuntime
impl !Send for FrontendRuntime
impl !Sync for FrontendRuntime
impl !UnwindSafe for FrontendRuntime
impl Freeze for FrontendRuntime
impl Unpin for FrontendRuntime
impl UnsafeUnpin for FrontendRuntime
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