I'm trying to convert the result of a reqwest file download in to a type which implements the Read
trait. Reqwest has given back a Bytes
type. Bytes does not seem to implement Read
trait but in the same library there is Buf
which does implement Read
.
I have been trying to find a way to convert Bytes
to Buf
but I have not found a way. Am I going about this the right way if I want to get something which implements Read
and is there a way to do it by converting Bytes
to Buf
?