pub struct VpRunner<'a> { /* private fields */ }
Implementations§
Source§impl<'a> VpRunner<'a>
impl<'a> VpRunner<'a>
Sourcepub fn complete_exit(&mut self) -> Result<Exit<'_>, Error>
pub fn complete_exit(&mut self) -> Result<Exit<'_>, Error>
Completes the current exit without running the VP further.
This may generate more exits.
Sourcepub fn run(&mut self) -> Result<Exit<'_>, Error>
pub fn run(&mut self) -> Result<Exit<'_>, Error>
Continues running the VP.
Runs until an exit occurs or interrupted by a signal or a call to
Processor::force_exit
.
Sourcepub fn check_or_request_interrupt_window(&mut self) -> bool
pub fn check_or_request_interrupt_window(&mut self) -> bool
Request an exit when the interrupt window opens.
Returns true if the window is already open (in which case the request is not registered).
Sourcepub fn inject_extint_interrupt(&mut self, vector: u8) -> Result<(), Error>
pub fn inject_extint_interrupt(&mut self, vector: u8) -> Result<(), Error>
Injects an extint interrupt.
Caller must ensure that either it has received a
Exit::InterruptWindow
exit, or that
Self::check_or_request_interrupt_window
has returned true
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for VpRunner<'a>
impl<'a> !RefUnwindSafe for VpRunner<'a>
impl<'a> !Send for VpRunner<'a>
impl<'a> !Sync for VpRunner<'a>
impl<'a> Unpin for VpRunner<'a>
impl<'a> !UnwindSafe for VpRunner<'a>
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