Variant
stream-error
An error for input-stream and output-stream operations.
variant stream-error {
last-operation-failed(error),
closed,
}Cases
| Case | Payload | Description |
|---|---|---|
| last-operation-failed | error | The last operation (a write or flush) failed before completion. |
| closed | — | The stream is closed: no more input will be accepted by the stream. A closed output-stream will return this error on all future operations. |