Skip to main content

RuntimeConfig

Struct RuntimeConfig 

Source
pub struct RuntimeConfig {
Show 22 fields pub listen: ListenConfig, pub tls: Option<TlsConfig>, pub auth: AuthConfig, pub ops_console: OpsConsoleConfig, pub namespace: NamespaceConfig, pub worker: WorkerConfig, pub websocket: WebSocketConfig, pub workflow_packages: Vec<PathBuf>, pub deploy: DeployConfig, pub authoring: AuthoringConfig, pub dev: DevConfig, pub outbox: OutboxConfig, pub observability: ObservabilityConfig, pub scheduler_threads: usize, pub query_timeout: Option<Duration>, pub default_namespace: String, pub auto_create: AutoCreate, pub max_in_flight_activities: u32, pub drain_timeout: Duration, pub metrics: MetricsConfig, pub owned_shards: Vec<usize>, pub cors_allowed_origins: Vec<String>,
}
Expand description

Runtime settings retained in shared server state for transport adapters.

Fields§

§listen: ListenConfig

Listener addresses for public transports.

§tls: Option<TlsConfig>

Optional TLS material for public transports.

§auth: AuthConfig

Authentication configuration shared by transports.

§ops_console: OpsConsoleConfig

Ops-console asset location.

§namespace: NamespaceConfig

Namespace resolver construction mode.

§worker: WorkerConfig

Remote worker heartbeat configuration.

§websocket: WebSocketConfig

WebSocket stream configuration.

§workflow_packages: Vec<PathBuf>

Workflow package archives loaded into the engine at startup.

§deploy: DeployConfig

Operator deploy API settings.

§authoring: AuthoringConfig

Server-side Gleam authoring API settings.

§dev: DevConfig

Local dev-server surface settings.

§outbox: OutboxConfig

Durable-outbox fan-out dispatcher settings.

§observability: ObservabilityConfig

Agent-observability transcript retention bounds ([observability]).

§scheduler_threads: usize

Engine scheduler thread count.

§query_timeout: Option<Duration>

Engine reply deadline for workflow queries. REQUIRED — carried as an Option only so state construction can re-validate (defense in depth, like websocket.event_broadcast_capacity); validated configurations always hold Some non-zero duration.

§default_namespace: String

Default namespace used by worker dispatch and unauthenticated local callers.

§auto_create: AutoCreate

Minted-on-use policy applied at the worker-registration mint hook ([namespaces] auto_create). AutoCreate::Open (the default) mints an unseen namespace durably; AutoCreate::Closed rejects it.

§max_in_flight_activities: u32

Platform-wide default for a namespace’s cluster-wide concurrent in-flight-activity ceiling ([namespaces] max_in_flight_activities), applied when a namespace record carries no explicit override. Carried in runtime state so the later P2-Q2 keyed-backpressure dispatcher can read it without reloading config. Stored-only in this slice — nothing reads it yet.

§drain_timeout: Duration

Graceful drain timeout.

§metrics: MetricsConfig

Metrics endpoint settings.

§owned_shards: Vec<usize>

Static distribution-shard assignment for this node (from [store] owned_shards). Empty means own ALL shards (single-node default, byte-identical to today); a non-empty set scopes engine recovery and enumeration to exactly those shards. No election: assignment is static.

§cors_allowed_origins: Vec<String>

Browser origins allowed cross-origin access to the public HTTP API (from [server] cors_allowed_origins). Empty means no cross-origin access and no CorsLayer is installed (secure default); a non-empty set installs the layer scoped to exactly those origins.

Trait Implementations§

Source§

impl Clone for RuntimeConfig

Source§

fn clone(&self) -> RuntimeConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for RuntimeConfig

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more