Skip to content

Idiomatic way for manipulating a &ByteStream #1044

Answered by rcoh
vhsconnect asked this question in Q&A
Discussion options

You must be logged in to vote

Use .body (without parens) to take ownership. I think you probably want .collect, or to iterate over the chunks. See example 2 here: https://docs.rs/aws-sdk-glacier/latest/aws_sdk_glacier/primitives/struct.ByteStream.html#getting-data-out-of-a-bytestream

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vhsconnect
Comment options

@rcoh
Comment options

Answer selected by rcoh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants