static lifetime for CloseFrame
in ws::Message::Close
#2065
-
Hello, I've been wondering why It's usually not a problem but sometimes for better diagnosis, it would be simpler to be able to pass dynamic data. If that's something that may/should be fixed, I may give it a try, but if that's not desired, that's also fine |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
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. |
Beta Was this translation helpful? Give feedback.
-
Oh, that's just me failing to use `Cow` property then, thank you for a
clarification.
чт, 29 июн. 2023 г., 19:54 David Pedersen ***@***.***>:
… 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.
—
Reply to this email directly, view it on GitHub
<#2065 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMJBCOFNTMDLJVW6D372K3XNWQLXANCNFSM6AAAAAAZYUS5G4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
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.