pub struct ClusterCfg {
pub join: Option<String>,
pub n_workers: usize,
pub exchange_bind: String,
pub control_bind: String,
pub flows: usize,
pub window: usize,
}Expand description
How this process participates in a run: solo (no clustering), or one worker of a cluster —
either the leader (waits for n_workers to register) or a joiner (registers with a leader).
Fields§
§join: Option<String>The leader’s control address to join, or None if this process is the leader.
n_workers: usizeThe leader’s expected total worker count (the leader waits for this many).
exchange_bind: StringThis worker’s exchange listen address (peers connect here). 127.0.0.1:0 (ephemeral) for a
same-box run; a routable host:port for multi-node.
control_bind: StringThe leader’s control listen address.
flows: usizeFlows per worker pair, and the per-channel credit window in bytes.
window: usizeImplementations§
Source§impl ClusterCfg
impl ClusterCfg
Sourcepub fn parse(
join: &str,
n_workers: usize,
exchange_bind: &str,
control_bind: &str,
flows: usize,
window: usize,
) -> Option<ClusterCfg>
pub fn parse( join: &str, n_workers: usize, exchange_bind: &str, control_bind: &str, flows: usize, window: usize, ) -> Option<ClusterCfg>
Parse a cluster config from the runner’s settings; None is a solo run (no --join and at
most one worker) — the pre-Phase-4 single-process path. A worker (join set) or a leader
(n_workers > 1) is clustered.
Trait Implementations§
Source§impl Clone for ClusterCfg
impl Clone for ClusterCfg
Source§impl Debug for ClusterCfg
impl Debug for ClusterCfg
impl Eq for ClusterCfg
Source§impl PartialEq for ClusterCfg
impl PartialEq for ClusterCfg
impl StructuralPartialEq for ClusterCfg
Auto Trait Implementations§
impl Freeze for ClusterCfg
impl RefUnwindSafe for ClusterCfg
impl Send for ClusterCfg
impl Sync for ClusterCfg
impl Unpin for ClusterCfg
impl UnsafeUnpin for ClusterCfg
impl UnwindSafe for ClusterCfg
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.