pub struct HostResumable<T> {
pub(crate) func_addr: FuncAddr,
pub(crate) params: Vec<Value>,
pub(crate) hostcode: fn(&mut T, Vec<Value>) -> Result<Vec<Value>, HaltExecutionError>,
pub(crate) maybe_fuel: Option<u64>,
}Fields§
§func_addr: FuncAddrMust be a host function instance.
params: Vec<Value>Must contain the correct types as specified by the FuncType for
func_addr.
hostcode: fn(&mut T, Vec<Value>) -> Result<Vec<Value>, HaltExecutionError>§maybe_fuel: Option<u64>Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for HostResumable<T>
impl<T> RefUnwindSafe for HostResumable<T>
impl<T> Send for HostResumable<T>
impl<T> Sync for HostResumable<T>
impl<T> Unpin for HostResumable<T>
impl<T> UnwindSafe for HostResumable<T>
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