tosc-rs / mgnp

MnemOS Global Networking Protocol
Creative Commons Attribution Share Alike 4.0 International
14 stars 1 forks source link

tricky-pipe: add a oneshot channel #11

Closed hawkw closed 8 months ago

hawkw commented 8 months ago

we need oneshot channels for connection establishment. ideally, the oneshot channel could also handle serialization/type erasure of a Hello message and/or connect error.

we can probably start by building on top of the Reusable oneshot from kernel::comms, especially since the reusability is a nice side property. since the oneshot is used for conn establishment, the reusable side could potentially be owned by an interface client handle.