Module my_rust_socketio::payload
source · Expand description
Deprecated import since 0.3.0-alpha-2, use Event in the crate root instead. Defines the types of payload (binary or string), that could be sent or received.
Enums
- A type which represents a
payload
in thesocket.io
context. A payload could either be of the typePayload::Binary
, which holds data in theBytes
type that represents the payload or of the typePayload::String
which holds astd::string::String
. The enum is used for both representing data that’s send and data that’s received.