Skip to main content

Module decode

Module decode 

Source
Expand description

Turning a wire-item stream into a typed event stream.

This is the one piece of runtime the generated client calls: everything above it is the activation’s own types, everything below it is a Transport.

Functions§

collect_data
Drive a typed stream to completion, collecting every data event.
decode
Decode a transport’s wire items into a method’s typed events.
error_stream
A typed stream that yields exactly one error and then ends.

Type Aliases§

EventStream
A boxed stream of typed events. Mirrors ItemStream’s Send bound: required off wasm32, dropped on it.