Type Alias wasmcloud_runtime::capability::blobstore::types::IncomingValue

source ·
pub type IncomingValue = IncomingValue;
Expand description

A incoming-value is a wrapper around a value. It provides a way to read the value from the input-stream defined in the wasi-io interface.

The incoming-value provides two ways to consume the value:

  1. incoming-value-consume-sync consumes the value synchronously and returns the value as a list of bytes.
  2. incoming-value-consume-async consumes the value asynchronously and returns the value as an input-stream. Soon: switch to resource incoming-value { ... }

Aliased Type§

struct IncomingValue { /* private fields */ }