Skip to main content

Module stream

Module stream 

Source
Expand description

One payload pass with sticky source, callback and resource refusal.

Structs§

Refused
A write refusal whose original cause remains held by the stream driver.

Enums§

RangesError
Range acquisition has no ASN.1 source location of its own.
StreamError
Why a payload pass could not finish.

Traits§

AsyncSource
Complete payload acquisition that may suspend between bounded chunks. The same sticky receiver and cause precedence govern synchronous sources. No executor, heap allocation, Send bound or blocking adapter is required.
Receiver
A source-facing chunk receiver.
Sink
An injected processing sink, such as a set of digest/raw verification states.
Source
Caller-supplied payload acquisition; successful return denotes complete EOF.

Functions§

run
Feeds one source once and preserves the first sink refusal without cloning.
run_async
Suspends source acquisition while preserving the same sticky callback refusal, admission order and complete-EOF boundary as run. Dropping the future drops the borrowed driver, without producing a partial receipt.