project-chip / rs-matter

Rust implementation of the Matter protocol. Status: Experimental
Apache License 2.0
303 stars 43 forks source link

Network chaining #168

Closed ivmarkov closed 2 months ago

ivmarkov commented 2 months ago

This PR introduces a ChainedNetwork utility (very similar to the utilities we already have for chaining DM handlers with ChainedHandler and for protocol handlers with ChainedExchangeHandler).

A chained network is simply a composition of multiple NetworkSend / NetworkReceive trait implementations, that covers the use cases where multiple networks need to operate simultaneously:

The PR also: