Struct connect::Cluster[][src]

pub struct Cluster { /* fields omitted */ }

Cluster represents a group of servers in a distributed system.

Methods

impl Cluster
[src]

This function takes file_path as input and initializes Cluster with the file.

Panics

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.

Trait Implementations

impl Debug for Cluster
[src]

Formats the value using the given formatter. Read more

impl<'a> From<&'a Config> for Cluster
[src]

This function performs conversion from Config to Cluster.

Panics

This function panics if there is any ConfigError or some configuration values are malformed or absent.

Auto Trait Implementations

impl Send for Cluster

impl Sync for Cluster