pub struct TypedResumableCallOutOfFuel<Results> { /* private fields */ }Expand description
State required to resume a TypedFunc invocation after running out of fuel.
Implementations§
Source§impl<Results> TypedResumableCallOutOfFuel<Results>
impl<Results> TypedResumableCallOutOfFuel<Results>
Sourcepub fn resume<T>(
self,
ctx: impl AsContextMut<Data = T>,
) -> Result<TypedResumableCall<Results>, Error>where
Results: WasmResults,
pub fn resume<T>(
self,
ctx: impl AsContextMut<Data = T>,
) -> Result<TypedResumableCall<Results>, Error>where
Results: WasmResults,
Resumes the call to the TypedFunc with the given inputs.
Returns a resumable handle to the function invocation upon encountering host errors with which it is possible to handle the error and continue the execution as if no error occurred.
§Errors
- If the function resumption returned a Wasm
Error. - If the types or the number of values in
inputsdoes not match the types and number of result values of the erroneous host function.
Methods from Deref<Target = ResumableCallOutOfFuel>§
Sourcepub fn required_fuel(&self) -> u64
pub fn required_fuel(&self) -> u64
Returns the minimum required fuel to progress execution.
Trait Implementations§
Source§impl<Results> Debug for TypedResumableCallOutOfFuel<Results>
impl<Results> Debug for TypedResumableCallOutOfFuel<Results>
Auto Trait Implementations§
impl<Results> Freeze for TypedResumableCallOutOfFuel<Results>
impl<Results> !RefUnwindSafe for TypedResumableCallOutOfFuel<Results>
impl<Results> Send for TypedResumableCallOutOfFuel<Results>
impl<Results> Sync for TypedResumableCallOutOfFuel<Results>
impl<Results> Unpin for TypedResumableCallOutOfFuel<Results>
impl<Results> !UnwindSafe for TypedResumableCallOutOfFuel<Results>
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