Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
imtringued
on April 2, 2020
|
parent
|
context
|
favorite
| on:
State Machines in Rust
Usually you would just call your functions hibernate() and terminate(). That way you can call hibernate() on State<Running> but not on State<Terminated> or State<Hibernate>.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: