Struct rustzx_core::Emulator [−][src]
pub struct Emulator<H: Host> { /* fields omitted */ }
Expand description
Represents main Emulator structure
Implementations
impl<H: Host> Emulator<H>
[src]
impl<H: Host> Emulator<H>
[src]pub fn new(settings: RustzxSettings, context: H::Context) -> Result<Self>
[src]
pub fn new(settings: RustzxSettings, context: H::Context) -> Result<Self>
[src]pub fn set_speed(&mut self, new_speed: EmulationSpeed)
[src]
pub fn set_speed(&mut self, new_speed: EmulationSpeed)
[src]changes emulation speed
pub fn set_fast_load(&mut self, value: bool)
[src]
pub fn set_fast_load(&mut self, value: bool)
[src]changes fast loading flag
pub fn load_snapshot(
&mut self,
snapshot: Snapshot<H::SnapshotAsset>
) -> Result<()>
[src]
&mut self,
snapshot: Snapshot<H::SnapshotAsset>
) -> Result<()>
pub fn load_tape(&mut self, tape: Tape<H::TapeAsset>) -> Result<()>
[src]
pub fn load_rom(&mut self, rom: H::RomSet) -> Result<()>
[src]
pub fn play_tape(&mut self)
[src]
pub fn stop_tape(&mut self)
[src]
pub fn screen_buffer(&self) -> &H::FrameBuffer
[src]
pub fn border_color(&self) -> ZXColor
[src]
pub fn send_key(&mut self, key: ZXKey, pressed: bool)
[src]
pub fn send_kempston_key(&mut self, key: KempstonKey, state: bool)
[src]
Auto Trait Implementations
impl<H> RefUnwindSafe for Emulator<H> where
<H as Host>::FrameBuffer: RefUnwindSafe,
<H as Host>::TapeAsset: RefUnwindSafe,
<H as Host>::FrameBuffer: RefUnwindSafe,
<H as Host>::TapeAsset: RefUnwindSafe,
impl<H> Send for Emulator<H> where
<H as Host>::FrameBuffer: Send,
<H as Host>::TapeAsset: Send,
<H as Host>::FrameBuffer: Send,
<H as Host>::TapeAsset: Send,
impl<H> Sync for Emulator<H> where
<H as Host>::FrameBuffer: Sync,
<H as Host>::TapeAsset: Sync,
<H as Host>::FrameBuffer: Sync,
<H as Host>::TapeAsset: Sync,
impl<H> Unpin for Emulator<H> where
<H as Host>::FrameBuffer: Unpin,
<H as Host>::TapeAsset: Unpin,
<H as Host>::FrameBuffer: Unpin,
<H as Host>::TapeAsset: Unpin,
impl<H> UnwindSafe for Emulator<H> where
<H as Host>::FrameBuffer: UnwindSafe,
<H as Host>::TapeAsset: UnwindSafe,
<H as Host>::FrameBuffer: UnwindSafe,
<H as Host>::TapeAsset: UnwindSafe,