[−][src]Struct watson::WasmExecution
Fields
call_stack: (usize, Vec<WasmValue>)
value_stack: Vec<WasmValue>
current_position: Vec<usize>
memory: Arc<Mutex<Vec<u8>>>
program: Arc<Mutex<T>>
Implementations
impl<T> WasmExecution<T> where
T: InterpretableProgram,
[src]
T: InterpretableProgram,
pub fn new(
name: &str,
params: &[WasmValue],
program: Arc<Mutex<T>>,
memory: Arc<Mutex<Vec<u8>>>
) -> Result<Self, &'static str>
[src]
name: &str,
params: &[WasmValue],
program: Arc<Mutex<T>>,
memory: Arc<Mutex<Vec<u8>>>
) -> Result<Self, &'static str>
pub fn next_unit(&mut self) -> Result<ExecutionUnit, &'static str>
[src]
pub fn execute(&mut self, r: ExecutionResponse) -> Result<(), &'static str>
[src]
pub fn memory(&mut self) -> Option<Arc<Mutex<Vec<u8>>>>
[src]
Trait Implementations
impl<'de, T> Deserialize<'de> for WasmExecution<T> where
T: InterpretableProgram,
T: Default,
[src]
T: InterpretableProgram,
T: Default,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T> Serialize for WasmExecution<T> where
T: InterpretableProgram,
[src]
T: InterpretableProgram,
Auto Trait Implementations
impl<T> Send for WasmExecution<T> where
T: Send,
T: Send,
impl<T> Sync for WasmExecution<T> where
T: Send,
T: Send,
impl<T> Unpin for WasmExecution<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,