Skip to content

static lifetime for CloseFrame in ws::Message::Close #2065

Answered by davidpdrsn
sukhmel asked this question in Q&A
Discussion options

You must be logged in to vote

You can pass dynamic data. The lifetime is used in a Cow<‘static, str> which means either a &’static str or a dynamic String. It doesn’t require a &’static str.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by davidpdrsn
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants