Found a later post - How to write software without self-referential structs? which I think is talking about the same problem. I will see if I can later rewrite my ssh struct using the rental crate, and if I manage it, will post here.
2 Likes