Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core/muxing: Flatten
StreamMuxer
interface to `poll_{inbound,outbou…
…nd,address_change,close}` (libp2p#2724) Instead of having a mix of `poll_event`, `poll_outbound` and `poll_close`, we flatten the entire interface of `StreamMuxer` into 4 individual functions: - `poll_inbound` - `poll_outbound` - `poll_address_change` - `poll_close` This design is closer to the design of other async traits like `AsyncRead` and `AsyncWrite`. It also allows us to delete the `StreamMuxerEvent`.
- Loading branch information