Thanks for your reply. I'm still trying to understand what the restrictions look like.
Say I sometimes have an outstanding asynchronous operation, i.e. validating some text in a document. I want to represent this by storing a Future representing this operation:
struct Document {
text:String,
validating: Option<Future<Bool>>
};
It seems like there's a problem: in order to have a struct of this type, we need to have the type of the Future, but the only way to have the type of the Future is to create the Future (and here we have None).It this struct possible? How would I initialize it with {"foo", None}?