Re-exports§
pub use reader::StreamReader;pub use writer::StreamWriter;
Modules§
Structs§
- Aligned
Destination - What
SystemDestinationshands out: one host allocation at the declared alignment. - Composite
Assembler - Rebuilds composite tensors from a stream of flat tensors.
- Destination
Request - What the core needs for one buffer of the tensor it is reading.
- Stream
Composite - A decoded composite tensor: its data-less head plus its ordered members.
- Stream
Reader Core - Decodes the Hurray stream wire format from bytes a driver supplies.
- Stream
Reader Options - The limits a reader enforces on an untrusted stream.
- Stream
Tensor - A decoded tensor: its descriptor plus its buffers.
- Stream
Writer Core - Encodes the Hurray stream wire format into bytes a driver writes.
- System
Destinations - The default allocator: one host allocation per buffer at the declared alignment.
- WriteOp
- One item being written: a tensor or a whole composite.
Enums§
- Composite
Node - A node to emit as part of a composite: either a plain tensor (its descriptor plus one byte-slice per buffer) or a nested composite (its head plus its own members).
- Read
Step - What the core needs next from its driver.
- Stream
Item - One decoded item from the stream: either a plain tensor or a composite.
- Unusable
- Why a core became unusable: a transport moved bytes and their count was lost, so the core’s position no longer matches the transport’s (ADR-041 § 6).
- Write
Step - What the core has for its driver.
Constants§
- DEFAULT_
MAX_ COMPOSITE_ DEPTH - Default maximum composite nesting depth.
- DEFAULT_
MAX_ DESCRIPTOR_ BYTES - Default maximum descriptor size: 16 MiB.
Traits§
- Destination
- One buffer’s worth of memory, filled by a driver and then handed to the caller.
- Destination
Alloc - Allocates the destinations a
StreamReaderCorefills.