Skip to main content

Module stream_consumer

Module stream_consumer 

Source
Expand description

Cross-target streaming consumer types.

Extracted from streaming.rs (native-only) so that StreamHandleImpl<T> can compile on both native and wasm32. All types here are pure logic — no ZMQ, no Tokio, no platform-specific deps.

  • StreamPayload — parsed output from verified stream blocks
  • StreamVerifier — HMAC chain verifier (pure crypto)
  • StreamHandleImpl<T> — unified stream consumer over any Transport

Structs§

StreamHandleImpl
E2E authenticated stream consumer, generic over transport.
StreamVerifier
HMAC chain verifier for StreamBlock.
VerifierContract
The consumer’s slice of the stream’s API contract (#213), set from the service’s $streamQos via codegen (#217) — NOT from the wire, so it can’t be downgraded.

Enums§

Completion
Consumer-side truncation contract (#163/#213). Maps to the schema Completion axis (schema none → Open).
StreamOrdering
Consumer-side ordering contract (#163/#213). The full StreamOpt (schema) carries producer-side QoS too (delivery/retention/overflow); the consumer only needs ordering
StreamPayload
Output payload from StreamVerifier.

Traits§

StreamHandle
Object-safe stream handle for dynamic dispatch.