Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export AppEntry #1005

Closed
snoyberg opened this issue Jul 23, 2019 · 2 comments
Closed

Export AppEntry #1005

snoyberg opened this issue Jul 23, 2019 · 2 comments

Comments

@snoyberg
Copy link
Contributor

Use case: I'm trying to extract the closure which lives inside HttpServer::new to its own top level function. However, I'm unable to write the type signature, since AppEntry is not publicly exported. Would you be open to a PR which would make AppEntry available publicly?

@fafhrd91
Copy link
Member

Writing down App type is wrong approach. Try App::configure, if it doesn’t work then it is better to use impl IntoNewService<...> instead of App type

@snoyberg
Copy link
Contributor Author

Thanks for the quick response! I'll go that route instead, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants