pub struct WebSocketConfig {
pub outbound_buffer_bound: usize,
pub event_broadcast_capacity: Option<usize>,
pub cluster_broadcast_capacity: Option<usize>,
}Expand description
WebSocket stream configuration.
Fields§
§outbound_buffer_bound: usizePer-connection outbound buffer bound.
event_broadcast_capacity: Option<usize>Capacity of the engine-global event broadcast channel that backs
/events/stream. REQUIRED — the server always mounts the streaming
endpoint, so streaming capacity must be an explicit operator decision;
there is no default. Lag is filter-blind, so size this for global event
volume across all namespaces, not per-subscription volume.
cluster_broadcast_capacity: Option<usize>Capacity of the deployment-global cluster topology/ownership broadcast
channel that backs the WS3 cluster subscription on /events/stream.
REQUIRED with the same non-zero startup guard as
Self::event_broadcast_capacity: the cluster channel uses the same
lag -> one-error-frame -> close contract, which has no defined buffer to
lag against unless a capacity is configured. Cluster events are low-rate
(peer/shard/worker topology deltas), so this is typically far smaller
than the workflow event capacity.
Trait Implementations§
Source§impl Clone for WebSocketConfig
impl Clone for WebSocketConfig
Source§fn clone(&self) -> WebSocketConfig
fn clone(&self) -> WebSocketConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for WebSocketConfig
impl Debug for WebSocketConfig
Source§impl Default for WebSocketConfig
impl Default for WebSocketConfig
Source§impl<'de> Deserialize<'de> for WebSocketConfigwhere
WebSocketConfig: Default,
impl<'de> Deserialize<'de> for WebSocketConfigwhere
WebSocketConfig: Default,
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>,
Auto Trait Implementations§
impl Freeze for WebSocketConfig
impl RefUnwindSafe for WebSocketConfig
impl Send for WebSocketConfig
impl Sync for WebSocketConfig
impl Unpin for WebSocketConfig
impl UnsafeUnpin for WebSocketConfig
impl UnwindSafe for WebSocketConfig
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request