Skip to content
Unverified Commit bc342293 authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Add ByteStream abstraction (#333)

* Add ByteStream abstraction

Introduce `ByteStream`, a wrapper around SdkBody to provide easy-to-use abstractions around streaming binary data.

* Updates for CR feedback
- `data` is renamed to `collect`
- Added `into_inner` so that you can use it as a body directly if desired
- Removed unecessary impl for io::Error
- Added `From<SdkBody> for ByteStream
- Project to remove need for `Unpin` in `Inner`
- Forward relevant method in `Buf` implementation
- Use `try_next` in example

* Fix missed `data -> Collect`

* Show don't tell in examples
parent 849f849b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment