pub struct InterpreterEnv {
pub env: HashMap<EnvironmentKey, RibInterpreterStackValue>,
pub call_worker_function_async: Arc<dyn RibComponentFunctionInvoke + Sync + Send>,
}Fields§
§env: HashMap<EnvironmentKey, RibInterpreterStackValue>§call_worker_function_async: Arc<dyn RibComponentFunctionInvoke + Sync + Send>Implementations§
Source§impl InterpreterEnv
impl InterpreterEnv
pub async fn invoke_worker_function_async( &self, component_dependency_key: ComponentDependencyKey, instruction_id: &InstructionId, worker_name: String, function_name: String, args: Vec<ValueAndType>, return_type: Option<WitType>, ) -> Result<Option<ValueAndType>, Box<dyn Error + Send + Sync>>
pub fn from_input(env: &RibInput) -> Self
pub fn from( input: &RibInput, call_worker_function_async: &Arc<dyn RibComponentFunctionInvoke + Sync + Send>, ) -> Self
pub fn insert(&mut self, key: EnvironmentKey, value: RibInterpreterStackValue)
pub fn lookup(&self, key: &EnvironmentKey) -> Option<&RibInterpreterStackValue>
Trait Implementations§
Source§impl Debug for InterpreterEnv
impl Debug for InterpreterEnv
Auto Trait Implementations§
impl Freeze for InterpreterEnv
impl !RefUnwindSafe for InterpreterEnv
impl Send for InterpreterEnv
impl Sync for InterpreterEnv
impl Unpin for InterpreterEnv
impl UnsafeUnpin for InterpreterEnv
impl !UnwindSafe for InterpreterEnv
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