Re-exports§
pub use stream::CancelAlgorithm;pub use stream::PullAlgorithm;pub use stream::StartAlgorithm;
Modules§
Structs§
- Native
Pull - Wrapper satisfying JsLifetime/Trace.
- Readable
Byte Stream Controller
Enums§
- Native
Pull Result - Native async pull: returns Ok(Some(chunk)) or Ok(None) for EOF. Result of a native pull: data ready, EOF, or need async.
- Readable
Stream Controller Class
Functions§
- readable_
byte_ stream_ controller_ close_ stream - Public API for closing a byte stream controller from Rust code.
- readable_
byte_ stream_ controller_ enqueue_ bytes - Public API for enqueuing a
Uint8Array(built from the caller-suppliedArrayBuffer) into a byte stream controller from Rust code. Used by byte-source streams created viaReadableStream::from_byte_pull_algorithm. - readable_
byte_ stream_ controller_ enqueue_ bytes_ borrowed - Zero-copy variant of
readable_byte_stream_controller_enqueue_bytes: the incomingArrayBufferis NOT transferred/detached before being queued. The producer keeps the buffer alive through the stream’s'jsqueue entry, so consumers get aUint8Arraythat views directly into the producer’s storage. - readable_
stream_ default_ controller_ close_ stream - Public API for closing a default controller from Rust code
- readable_
stream_ default_ controller_ enqueue_ value - Public API for enqueuing data into a default controller from Rust code
- readable_
stream_ default_ controller_ error_ stream - Public API for erroring a default controller from Rust code