News for hackers. Stuff that matters.
Re:Rust's 2017 Roadmap by ainar-g on Monday February 06, 2017 @05:56PM (#13585117)
Okay, thank you again for your time!
Re:Rust's 2017 Roadmap by steveklabnik on Tuesday February 07, 2017 @12:55PM (#13591132)
Ah! I understand now.

Handlers aren't meant to be nested like this. That is, it's always going to break this way, because the handler needs to live as long as the request and response, so creating a sub-handler is not ever going to live long enough.

So yes, the solution is to not implement Handler for your UserIndexHandler; then you can just call it.

I bet there's something larger you could do as well, but I don't have enough experience with this interface to give good advice. Hyper's undergoing a huge docs drive for 0.11; I'm sure that'll help.

Re:Rust's 2017 Roadmap by ainar-g on Tuesday February 07, 2017 @05:25PM (#13593507)
Yeah, I figured that out as well, but thank you for finding the time to analyse the code and write an answer. I appreciate it and may be on my fourth attempt at actually learning Rust :)
Re:Rust's 2017 Roadmap by steveklabnik on Tuesday February 07, 2017 @05:43PM (#13593668)
No problem. :)