pub struct SingleUseMultiGuestCallContext { /* private fields */ }Expand description
A context for making multiple calls to guest functions in a SingleUseSandbox. Can only be created
from an existing SingleUseGuestCallContext using the call_using_closure method.
Once created, calls to guest functions may be made through this context until it is dropped.
Once dropped the underlying SingleUseGuestCallContext and associated SingleUseSandbox will be dropped
Implementations§
Source§impl SingleUseMultiGuestCallContext
impl SingleUseMultiGuestCallContext
Sourcepub fn call(
&mut self,
func_name: &str,
func_ret_type: ReturnType,
args: Option<Vec<ParameterValue>>,
) -> Result<ReturnValue>
pub fn call( &mut self, func_name: &str, func_ret_type: ReturnType, args: Option<Vec<ParameterValue>>, ) -> Result<ReturnValue>
Call the guest function called func_name with the given arguments
Auto Trait Implementations§
impl Freeze for SingleUseMultiGuestCallContext
impl RefUnwindSafe for SingleUseMultiGuestCallContext
impl Send for SingleUseMultiGuestCallContext
impl !Sync for SingleUseMultiGuestCallContext
impl Unpin for SingleUseMultiGuestCallContext
impl UnwindSafe for SingleUseMultiGuestCallContext
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