Expand description
Plaintext byte-stream capabilities for established transports.
These contracts describe one direction, independently of whether the transport encrypts its bytes. Scheduler stream handles forward directly into them. Packet transports keep their message boundaries and datagram metadata in separate packet capabilities rather than flattening packets into this interface, so not every endpoint connection is a stream.
Traitsยง
- Readable
Stream - A sequential input direction. A nonempty read returns zero at EOF. Independent input and output directions must be able to make progress.
- Writable
Stream - An ordered output direction. Accepted bytes must not be replayed after a cancelled flush; flush establishes delivery to the underlying transport.