Backing type of Payload #107
Answered
by
vilgotf
Ruttie2006
asked this question in
Q&A
-
Can a Payload struct's Bytes field be easily converted to BytesMut? |
Beta Was this translation helpful? Give feedback.
Answered by
vilgotf
Apr 13, 2025
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It will be unique unless required otherwise.
Currently that means it will be for data messages, but ping and close messages may be echoed by tws. However, frame masking makes it unique once again since it requires transforming the payload copy into
BytesMut
.