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

Add server lifetimes #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

llewelld
Copy link

Adds lifetimes to the server so that passed or captured parameters don't have to be static (they just have to live as long as the server).

I'm new to rust, so this may not be the correct approach. It seemed to work okay in my (admittedly limited) testing, but I'd appreciate input if there's a better or more correct approach.

Adds lifetimes to the server so that passed or captured parameters don't
have to be static (they just have to live as long as the server).
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

Successfully merging this pull request may close these issues.

1 participant