Stream: git-wasmtime

Topic: wasmtime / PR #11261 Take `&mut self` in `Stream{Reader,W...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 16 2025 at 21:55):

alexcrichton opened PR #11261 from alexcrichton:future-stream-mut-self to bytecodealliance:main:

This commit updates the various methods of Stream{Reader,Writer} to take a mutable reference to self instead of self-by-value. This is something which I personally feel is more idiomatic and avoids cumbersome and possibly frequent move-in-and-move-out style code. This is additionally coupled with a new is_closed method on each of these types to determine if the stream's other end has been closed after the last read/write operation.

Closes #11219

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jul 16 2025 at 21:55):

alexcrichton requested fitzgen for a review on PR #11261.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 16 2025 at 21:55):

alexcrichton requested wasmtime-core-reviewers for a review on PR #11261.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 16 2025 at 21:55):

alexcrichton requested dicej for a review on PR #11261.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 16 2025 at 22:14):

dicej submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 16 2025 at 22:30):

alexcrichton updated PR #11261.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 16 2025 at 22:30):

alexcrichton has enabled auto merge for PR #11261.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 16 2025 at 23:09):

alexcrichton merged PR #11261.


Last updated: Dec 06 2025 at 06:05 UTC