Replies: 1 comment 3 replies
-
Hi, thanks for using It's required by rustc that type must be Would you like to try passing a function in |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Inside a function, I am trying to execute and retry a task that I define by a closure.
Now, I would like to return the Retry object to the caller of the function, in order to give
out some kind of handle, that the caller can use to observe the retrying (for example by using notify or when).
I am having some trouble getting this to work.
I am getting this message:
the size for values of type (dyn futures::Future<Output = Result<Any, ApplicationError>> + 'static) cannot be known at compilation time the trait Sized is not implemented for (dyn futures::Future<Output = Result<Any, ApplicationError>> + 'static)
The code looks somewhat like this:
What am I doing wrong and how would one solve this?
Beta Was this translation helpful? Give feedback.
All reactions