Wasm Directoryalpha
Variant

stream-error

An error for input-stream and output-stream operations.

variant stream-error {
  last-operation-failed(error),
  closed,
}

Cases

CasePayloadDescription
last-operation-failederrorThe last operation (a write or flush) failed before completion.
closedThe stream is closed: no more input will be accepted by the stream. A closed output-stream will return this error on all future operations.