pub type TableReader = ResponseReader;Expand description
A table’s rows, arriving as they are read.
A YSON list fragment, in whatever format the read asked for — binary by
default, which is what ytsaurus_job::JobReader::binary expects.
This is ResponseReader under the name the table paths use; the type is
the same, because nothing about reading a response body as it arrives is
specific to tables.
§The check this gives up
Client::read_table verifies that what came
back is a complete fragment, which is the client’s only defence against a
mid-stream failure it cannot see (the proxy reports one in a trailer, and
ureq 3.3 exposes no trailers — rechecked against its source, not assumed).
Streaming cannot do that up front: the point is not to have the whole thing.
The defence moves to the decoder. A fragment cut short leaves a record that
does not parse, and JobReader fails on it rather than stopping quietly —
which is the same protection, applied at the point where it can still be
applied.
Aliased Type§
pub struct TableReader { /* private fields */ }