TextStream

Type Alias TextStream 

Source
pub type TextStream = Streaming<String>;
Expand description

A stream of text data.

§Chunking

Note that strings sent by the server might not arrive in the same chunking as they were sent.

This is because the underlying transport layer (HTTP/2 or HTTP/3) may choose to split or combine chunks for efficiency.

If you need to preserve individual string boundaries, consider using ChunkedTextStream or another encoding that preserves chunk boundaries.

Aliased Type§

pub struct TextStream { /* private fields */ }

Trait Implementations§

Source§

impl<S, U> From<S> for TextStream
where S: Stream<Item = U> + Send + 'static, U: Into<String>,

Source§

fn from(value: S) -> Self

Converts to this type from the input type.