Crate yew_websocket
source ·Modules
- Contains three macros for wrapping serde format. Collectively they allow you to define your own text and binary wrappers.
- A service to connect to a server through the
WebSocketProtocol.
Macros
- This macro is used for a format that can be encoded as Binary. It is used in conjunction with a type definition for a tuple struct with one (publicly accessible) element of a generic type. Not all types that can be encoded as Binary can be encoded as Text. As such, this macro should be paired with the text_format macro where such an encoding works (e.g., JSON), or with the text_format_is_an_error macro for binary-only formats (e.g., MsgPack).
- Copyright (c) 2017 Denis Kolodin