pub struct RuntimeConfig {
pub thread_count: Option<usize>,
pub signal_delivery: SignalDeliveryConfig,
pub outbox_enabled: bool,
}Expand description
Configuration used when constructing the embedded BEAM runtime.
Fields§
§thread_count: Option<usize>Optional scheduler thread count supplied by the engine builder.
None is passed through to beamr so the embedded runtime applies its own
runtime-aware default.
signal_delivery: SignalDeliveryConfigBounded readiness and retry policy for live signal mailbox delivery.
outbox_enabled: boolWhether the durable-outbox fan-out dispatch path is enabled.
Implementations§
Source§impl RuntimeConfig
impl RuntimeConfig
Sourcepub fn new(thread_count: Option<usize>) -> Self
pub fn new(thread_count: Option<usize>) -> Self
Create runtime configuration from the builder-supplied scheduler count.
Sourcepub const fn with_signal_delivery(
self,
signal_delivery: SignalDeliveryConfig,
) -> Self
pub const fn with_signal_delivery( self, signal_delivery: SignalDeliveryConfig, ) -> Self
Override the signal delivery retry policy.
Sourcepub const fn with_outbox_enabled(self, enabled: bool) -> Self
pub const fn with_outbox_enabled(self, enabled: bool) -> Self
Override whether the durable-outbox fan-out dispatch path is enabled.
Trait Implementations§
Source§impl Clone for RuntimeConfig
impl Clone for RuntimeConfig
Source§fn clone(&self) -> RuntimeConfig
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)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RuntimeConfig
Source§impl Debug for RuntimeConfig
impl Debug for RuntimeConfig
Source§impl Default for RuntimeConfig
impl Default for RuntimeConfig
Source§fn default() -> RuntimeConfig
fn default() -> RuntimeConfig
Returns the “default value” for a type. Read more
impl Eq for RuntimeConfig
Source§impl PartialEq for RuntimeConfig
impl PartialEq for RuntimeConfig
impl StructuralPartialEq for RuntimeConfig
Auto Trait Implementations§
impl Freeze for RuntimeConfig
impl RefUnwindSafe for RuntimeConfig
impl Send for RuntimeConfig
impl Sync for RuntimeConfig
impl Unpin for RuntimeConfig
impl UnsafeUnpin for RuntimeConfig
impl UnwindSafe for RuntimeConfig
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
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
Compare self to
key and return true if they are equal.