Structs§
- Default
Protocol - A default implementation of y-sync Protocol.
- Message
Reader - Since y-sync protocol enables for a multiple messages to be packed into a singe byte payload, MessageReader can be used over the decoder to read these messages one by one in iterable fashion.
Enums§
- Error
- An error type returned in response from y-sync Protocol.
- Message
- Sync
Message
Constants§
- MSG_
AUTH - Tag id for Message::Auth.
- MSG_
AWARENESS - Tag id for Message::Awareness.
- MSG_
QUERY_ AWARENESS - Tag id for Message::AwarenessQuery.
- MSG_
SYNC - Tag id for Message::Sync.
- MSG_
SYNC_ STEP_ 1 - Tag id for SyncMessage::SyncStep1.
- MSG_
SYNC_ STEP_ 2 - Tag id for SyncMessage::SyncStep2.
- MSG_
SYNC_ UPDATE - Tag id for SyncMessage::Update.
- PERMISSION_
DENIED - PERMISSION_
GRANTED
Traits§
- Protocol
- Trait implementing a y-sync protocol. The default implementation can be found in DefaultProtocol, but its implementation steps can be potentially changed by the user if necessary.