pub struct BetVm {
pub print_log: Vec<String>,
/* private fields */
}Fields§
§print_log: Vec<String>Implementations§
Source§impl BetVm
impl BetVm
pub fn new(code: Vec<u8>) -> Self
Sourcepub fn take_output(&mut self) -> Vec<String>
pub fn take_output(&mut self) -> Vec<String>
Drain all lines printed by print()/println() during execution.
pub fn set_node_id(&mut self, node_id: String)
pub fn set_remote(&mut self, transport: Arc<dyn RemoteTransport>)
pub fn register_agent_type(&mut self, type_id: u16, handler_addr: usize)
pub fn peek_stack(&self) -> Option<Value>
pub fn get_register(&self, reg: u8) -> Value
pub fn run(&mut self) -> Result<(), VmError>
Auto Trait Implementations§
impl Freeze for BetVm
impl !RefUnwindSafe for BetVm
impl Send for BetVm
impl Sync for BetVm
impl Unpin for BetVm
impl UnsafeUnpin for BetVm
impl !UnwindSafe for BetVm
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