Skip to content

Add server lifetimes#4

Open
llewelld wants to merge 1 commit intoMilesq:masterfrom
llewelld:server_lifetime
Open

Add server lifetimes#4
llewelld wants to merge 1 commit intoMilesq:masterfrom
llewelld:server_lifetime

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