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

docs(server): add bigger example to server module #2539

Merged
merged 1 commit into from
May 11, 2021

Conversation

davidpdrsn
Copy link
Member

It can sometimes be tricky to discover where to use move closures,
async move {}, and .clone() when creating a server. This adds a
slightly more bigger example that will hopefully help some.

Fixes #2446

It can sometimes be tricky to discover where to use `move` closures,
`async move {}`, and `.clone()` when creating a server. This adds a
slightly more bigger example that will hopefully help some.

Fixes #2446
@davidpdrsn davidpdrsn added the A-docs Area: documentation. label May 6, 2021
Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤩

@seanmonstar seanmonstar merged commit 8a05f8e into master May 11, 2021
@seanmonstar seanmonstar deleted the david/server-example branch May 11, 2021 23:56
BenxiangGe pushed a commit to BenxiangGe/hyper that referenced this pull request Jul 26, 2021
It can sometimes be tricky to discover where to use `move` closures,
`async move {}`, and `.clone()` when creating a server. This adds a
slightly more bigger example that will hopefully help some.

Fixes hyperium#2446
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Need to document how to clone clonable objects like Arc<> into a service_fn() in Hyper
2 participants