Skip to main content

BoxRowStream

Type Alias BoxRowStream 

Source
pub type BoxRowStream<'a> = Pin<Box<dyn Stream<Item = Result<Row, SqlError>> + Send + 'a>>;
Expand description

A boxed, backend-erased stream of decoded rows.

Each backend’s query_stream builds one of these from its native cursor. The 'a lifetime ties an async backend’s stream to the &mut borrow of its driver handle (so no self-referential storage / unsafe is needed); the synchronous backends produce a 'static stream backed by their bounded channel.

Aliased Type§

pub struct BoxRowStream<'a> { /* private fields */ }