mum-rs / mum

Daemon/cli mumble client
MIT License
31 stars 2 forks source link

Explain different connection states to the type system #98

Closed sornas closed 3 years ago

sornas commented 3 years ago

Something like a state-enum. For example, a ConnectedState always has a Server. This would decrease the amount of raw unwraps and implicit state assumptions.

We still need something that owns tcp/udp which shouldn't have to worry about which enum state we're in as long as we keep sending StatePhases.

sornas commented 3 years ago

Completed in #123