pub struct ClusterConfig {
pub node_name: String,
pub listen_address: SocketAddr,
pub seed_nodes: Vec<SocketAddr>,
pub cookie: String,
}Expand description
Beamr distribution cluster configuration for standalone deployment.
Fields§
§node_name: StringUnique node name advertised to the beamr distribution cluster.
listen_address: SocketAddrSocket address this node binds for inbound distribution links from peers.
This is distinct from ServerConfig::listen_address (the client wire
port): a clustered node listens on two ports — one for clients, one for
peer distribution traffic.
seed_nodes: Vec<SocketAddr>Seed node socket addresses used to join an existing cluster.
Shared distribution handshake cookie. Every node in a cluster MUST use the
same cookie or the OTP handshake is rejected. Defaults to
DEFAULT_COOKIE when omitted.
Trait Implementations§
Source§impl Clone for ClusterConfig
impl Clone for ClusterConfig
Source§fn clone(&self) -> ClusterConfig
fn clone(&self) -> ClusterConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClusterConfig
impl Debug for ClusterConfig
Source§impl<'de> Deserialize<'de> for ClusterConfig
impl<'de> Deserialize<'de> for ClusterConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClusterConfig
impl RefUnwindSafe for ClusterConfig
impl Send for ClusterConfig
impl Sync for ClusterConfig
impl Unpin for ClusterConfig
impl UnsafeUnpin for ClusterConfig
impl UnwindSafe for ClusterConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more