Skip to main content

EngineConfig

Struct EngineConfig 

Source
pub struct EngineConfig<R: Reactor> {
Show 27 fields pub user_strategy: SupervisionStrategy, pub system_strategy: SupervisionStrategy, pub intensity: RestartIntensity, pub shutdown_timeout: Duration, pub ask_timeout: Duration, pub response_capacity: usize, pub control_plane_socket: Option<PathBuf>, pub engine_id: EngineId, pub control_plane_tcp_addr: Option<String>, pub control_plane_quic_addr: Option<String>, pub control_plane_tls: Option<TlsConfig>, pub num_cores: Option<usize>, pub inter_core_queue_capacity: usize, pub plugin_rpc: Option<Arc<dyn PluginRpcHandler<R>>>, pub actor_spawn: Option<Arc<ActorSpawnFn<R>>>, pub cluster_membership: Option<Arc<RwLock<ClusterMembership>>>, pub federation_enabled: bool, pub federation_bind_addr: Option<String>, pub federation_seed_nodes: Vec<String>, pub federation_membership: MembershipConfig, pub federation_policy: FederationPolicy, pub federated_registry: Option<Arc<RwLock<FederatedRegistry>>>, pub consensus_engine: Option<Arc<dyn ConsensusEngine>>, pub consensus_groups: Option<Arc<RwLock<HashMap<ActorPath, String>>>>, pub consensus_group_meta: Option<Arc<RwLock<HashMap<String, ConsensusGroupMeta>>>>, pub consensus_engine_info: Option<ConsensusEngineInfo>, pub determinism_level: DeterminismLevel,
}
Expand description

Configuration for Engine.

Fields§

§user_strategy: SupervisionStrategy

Supervision strategy for the /user root supervisor.

§system_strategy: SupervisionStrategy

Supervision strategy for the /system root supervisor.

§intensity: RestartIntensity

Restart intensity for root supervisors.

§shutdown_timeout: Duration

Shutdown timeout before escalating to Brutal force-kill.

§ask_timeout: Duration

Default ask timeout for Addr<M>::ask().

§response_capacity: usize

Maximum number of pending ask requests (REQ-072).

§control_plane_socket: Option<PathBuf>

Unix socket path for the control plane server (REQ-086).

None disables the control plane. When set, the engine spawns a ControlPlaneActor at /system/control-plane that listens for JSON-RPC 2.0 requests on this socket.

§engine_id: EngineId

Identity of this engine. Required for network transport.

§control_plane_tcp_addr: Option<String>

TCP listener address for the control plane (Phase 6, stub).

§control_plane_quic_addr: Option<String>

QUIC listener address for the control plane (Phase 6, stub).

§control_plane_tls: Option<TlsConfig>

TLS configuration for network control plane endpoints (mTLS required).

§num_cores: Option<usize>

Number of cores for [MultiCoreEngine].

None defaults to the number of available logical CPUs.

§inter_core_queue_capacity: usize

Capacity of each inter-core ring buffer (messages). Defaults to 4096.

§plugin_rpc: Option<Arc<dyn PluginRpcHandler<R>>>

Optional plugin management handler for plugin.* control-plane RPCs.

When None (the default), plugin.* methods return a “not implemented” error. Wire in a PluginRegistry-backed implementation to enable live plugin management via the CLI.

§actor_spawn: Option<Arc<ActorSpawnFn<R>>>

Optional built-in actor spawn handler (non-plugin types).

§cluster_membership: Option<Arc<RwLock<ClusterMembership>>>

Optional cluster membership state for federation-aware control plane RPCs.

When set, cluster.status and cluster.members return data from this shared membership view. When None, those RPCs return a “not enabled” error.

§federation_enabled: bool

Enable built-in federation gossip service.

§federation_bind_addr: Option<String>

Bind address for federation gossip (host:port).

§federation_seed_nodes: Vec<String>

Seed node addresses for federation gossip.

§federation_membership: MembershipConfig

Federation membership config (gossip interval, timeouts, fanout).

§federation_policy: FederationPolicy

Federation routing policy (used by FederatedRouting).

§federated_registry: Option<Arc<RwLock<FederatedRegistry>>>

Shared federated registry for gossip and routing.

§consensus_engine: Option<Arc<dyn ConsensusEngine>>

Consensus engine for group management (Phase 8.3).

§consensus_groups: Option<Arc<RwLock<HashMap<ActorPath, String>>>>

Actor path → consensus group mapping.

§consensus_group_meta: Option<Arc<RwLock<HashMap<String, ConsensusGroupMeta>>>>

Consensus group metadata (members, etc.).

§consensus_engine_info: Option<ConsensusEngineInfo>

Consensus engine configuration summary (for CLI visibility).

§determinism_level: DeterminismLevel

WASM determinism enforcement level.

Trait Implementations§

Source§

impl<R: Clone + Reactor> Clone for EngineConfig<R>

Source§

fn clone(&self) -> EngineConfig<R>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<R: Reactor> Debug for EngineConfig<R>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<R: Reactor> Default for EngineConfig<R>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<R> Freeze for EngineConfig<R>

§

impl<R> !RefUnwindSafe for EngineConfig<R>

§

impl<R> Send for EngineConfig<R>

§

impl<R> Sync for EngineConfig<R>

§

impl<R> Unpin for EngineConfig<R>

§

impl<R> UnsafeUnpin for EngineConfig<R>

§

impl<R> !UnwindSafe for EngineConfig<R>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T, U> Upcast<T> for U
where T: UpcastFrom<U>,

Source§

fn upcast(self) -> T

Source§

impl<T, B> UpcastFrom<Counter<T, B>> for T

Source§

fn upcast_from(value: Counter<T, B>) -> T

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V