-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impl AsyncBufRead for Decoder
#289
Comments
update: I was able to update my function to return a I'm still very curious what it would take to implement |
Is this about |
#304 was implemented and released. If there's more to do for this issue please say so and we'll get it re-opened. |
Hi! So I've got a
stream: impl AsyncBufRead
, which may or may not be gzipped. I'm trying to return that stream in a function whose return type isResult<impl AsyncBufRead, Error>
, but running into the issue where theGzipDecoder
isAsyncRead
, but notAsyncBufRead
. Since theinner
reader it pulls from isAsyncBufRead
, is there any reason why the decoder itself can't beAsyncBufRead
?Or, am I misreading the docs, and I should just be calling
into_inner()
? the way I read it currently, this returns the original stream though, not the decoded version.If it's easier, I just need this for the
GzipDecoder
, but I assume this level would be generic across all theDecoder
s.The text was updated successfully, but these errors were encountered: