pub type FileReader = ResponseReader;Expand description
A file’s bytes, arriving as they are read.
This is ResponseReader under the name the file path uses, exactly as
TableReader is for tables: what
Client::read_file_streaming hands
back is the response body, and nothing about reading one as it arrives is
specific to files.
The check described on TableReader is given up here too, and with less
underneath it: a table cut short leaves a record that does not parse, but a
file’s bytes carry no framing at all, so a body ended early by a mid-stream
failure is indistinguishable from a complete one. bytes_read against
the size the caller expects — which is what the buffered
Client::read_file checks against the node’s
own @uncompressed_data_size — is the compensation available.
Aliased Type§
pub struct FileReader { /* private fields */ }