Enum aws_smithy_http::byte_stream::Length
source · pub enum Length {
Exact(u64),
UpTo(u64),
}
Expand description
The length (in bytes) to read. Determines whether or not a short read counts as an error.
Variants§
Exact(u64)
Read this number of bytes exactly. Returns an error if the file is smaller than expected.
UpTo(u64)
Read up to this number of bytes. May read less than the specified amount if the file is smaller than expected.