wrpc_runtime_wasmtime

Function read_value

source
pub async fn read_value<T, R>(
    store: &mut impl AsContextMut<Data = T>,
    r: &mut Pin<&mut R>,
    resources: &[ResourceType],
    val: &mut Val,
    ty: &Type,
    path: &[usize],
) -> Result<()>
where T: WasiView + WrpcView, R: AsyncRead + Index<R> + Send + Unpin + 'static,
Expand description

Read encoded value of type Type from an AsyncRead into a Val