I'm a professional software developer. In my experience, Rust code is shorter than equivalent C or C++ code, with proper error handling, no memory leaks, no race conditions.
If you rewrite the code above in a proper C, you will have a page of code at least.