Module rings_node::prelude::message::types
source · Expand description
This module defines various message structures in the Rings network. Most of the messages follow the Ping/Pong pattern, where there is a one-to-one correspondence between them, such as xxxSend and xxxReport messages.
Structs
- MessageType report to origin with own transport_uuid and handshake_info.
- MessageType use to ask for connection, send to remote with transport_uuid and handshake_info.
- MessageType use to customize message, will be handle by
custom_message
method. - MessageType use to report origin node with report message.
- MessageType use to find successor in a chord ring.
- MessageType report to origin found virtual node.
- MessageType use to join chord ring, add did into fingers table.
- MessageType use to leave chord ring.
- MessageType report to origin node.
- MessageType use to notify predecessor, ask for update finger tables.
- MessageType for handle [RemoteAction::Queryforsuccessorlist]
- MessageType for handle [RemoteAction::Queryforsuccessorlist]
- MessageType use to search virtual node.
- MessageType after
FindSuccessorSend
and syncing data.
Enums
- MessageType enum handle when meet the last node.
- MessageType enum Report contain FindSuccessorSend.
- A collection MessageType use for unified management.
- The reason of query successor’s TopoInfo
Traits
- The
Then
trait is used to associate a type with a “then” scenario.