pub struct Cluster { /* fields omitted */ }
Cluster
represents a group of servers in a distributed system.
This function takes file_path
as input and initializes Cluster
with the file.
This function panics if it is not able to find a file on file_path
or if it does
not have permissions to access the file. Also, this function panics if there is any
[ConfigError
] or some configuration values are malformed or absent.
This function returns SocketAddr
for peer connection.
This function returns SocketAddr
for client connection.
This function returns a vector containing SocketAddr
for peer connection for
all remote nodes of this cluster.
This function returns a vector containing SocketAddr
for client connection for
all remote nodes of this cluster.
This function returns a vector containing NodeId
of all the remote nodes of
this cluster.
This function returns SocketAddr
for peer connection for peer with specified member_id
.
This function returns SocketAddr
for client connection for peer with specified member_id
.
Formats the value using the given formatter. Read more
This function performs conversion from Config
to Cluster
.
This function panics if there is any ConfigError
or some configuration values
are malformed or absent.