Enum aws_smithy_types::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.
Auto Trait Implementations§
impl Freeze for Length
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnwindSafe for Length
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more