pub struct Emulator { /* private fields */ }Implementations§
Source§impl Emulator
impl Emulator
pub fn new(config: EmulatorConfig) -> Self
pub fn load_binary(&mut self, binary: &[u8]) -> Result<(), EmulatorError>
pub fn load_device_memory( &mut self, offset: u64, data: &[u8], ) -> Result<(), EmulatorError>
pub fn read_device_memory( &self, offset: u64, len: usize, ) -> Result<Vec<u8>, EmulatorError>
pub fn run(&mut self) -> Result<EmulatorResult, EmulatorError>
pub fn run_kernel( &mut self, kernel_index: usize, ) -> Result<EmulatorResult, EmulatorError>
pub fn device_memory(&self) -> &DeviceMemory
pub fn device_memory_mut(&mut self) -> &mut DeviceMemory
pub fn kernels(&self) -> &[KernelMetadata]
Auto Trait Implementations§
impl Freeze for Emulator
impl RefUnwindSafe for Emulator
impl Send for Emulator
impl Sync for Emulator
impl Unpin for Emulator
impl UnsafeUnpin for Emulator
impl UnwindSafe for Emulator
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