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§
- Payload
- A type which represents a
payloadin thesocket.iocontext. A payload could either be of the typePayload::Binary, which holds data in theBytestype that represents the payload or of the typePayload::Stringwhich holds astd::string::String. The enum is used for both representing data that’s send and data that’s received.