pub struct ControlVmModule { /* private fields */ }Implementations§
Source§impl ControlVmModule
impl ControlVmModule
pub fn eval_root_expr(&self, index: usize) -> Result<VmResult, VmError>
pub fn eval_root_expr_profiled( &self, index: usize, ) -> Result<(VmResult, VmProfile), VmError>
pub fn eval_root_expr_with_basic_host_profiled( &self, index: usize, stdout: &mut String, ) -> Result<(VmResult, VmProfile), VmError>
pub fn root_count(&self) -> usize
pub fn write_json_file(&self, path: &Path) -> Result<()>
pub fn read_json_file(path: &Path) -> Result<Self>
pub fn write_artifact_file(&self, path: &Path) -> Result<()>
pub fn read_artifact_file(path: &Path) -> Result<Self>
pub fn to_artifact_bytes(&self) -> Result<Vec<u8>>
pub fn from_artifact_bytes(bytes: &[u8]) -> Result<Self>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ControlVmModule
impl<'de> Deserialize<'de> for ControlVmModule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ControlVmModule
impl RefUnwindSafe for ControlVmModule
impl Send for ControlVmModule
impl Sync for ControlVmModule
impl Unpin for ControlVmModule
impl UnsafeUnpin for ControlVmModule
impl UnwindSafe for ControlVmModule
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