Skip to main content

Module readable

Module readable 

Source

Re-exports§

pub use stream::CancelAlgorithm;
pub use stream::PullAlgorithm;
pub use stream::StartAlgorithm;

Modules§

stream

Structs§

NativePull
Wrapper satisfying JsLifetime/Trace.
ReadableByteStreamController

Enums§

NativePullResult
Native async pull: returns Ok(Some(chunk)) or Ok(None) for EOF. Result of a native pull: data ready, EOF, or need async.
ReadableStreamControllerClass

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-supplied ArrayBuffer) into a byte stream controller from Rust code. Used by byte-source streams created via ReadableStream::from_byte_pull_algorithm.
readable_byte_stream_controller_enqueue_bytes_borrowed
Zero-copy variant of readable_byte_stream_controller_enqueue_bytes: the incoming ArrayBuffer is NOT transferred/detached before being queued. The producer keeps the buffer alive through the stream’s 'js queue entry, so consumers get a Uint8Array that 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

Type Aliases§

NativePullFn
ReadableByteStreamControllerClass
ReadableStreamDefaultControllerClass