pub struct BridgeConfig {
pub ws_port: u16,
pub control_port: u16,
pub request_timeout: Duration,
pub allow_origins: OriginAllowlist,
pub max_body_bytes: usize,
pub max_concurrent: usize,
}Expand description
Resolved runtime configuration for a bridge instance.
Fields§
§ws_port: u16WebSocket-plane port (0 binds an OS-assigned free port).
control_port: u16HTTP control-plane port (0 binds an OS-assigned free port).
request_timeout: DurationPer-request timeout before the control plane returns 504.
allow_origins: OriginAllowlistPer-connecting-origin cross-origin allowlist for both the WS upgrade gate and outbound URLs. Empty = the default-open gate / default-closed scope.
max_body_bytes: usizeMaximum browser response body size accepted, in bytes.
max_concurrent: usizeMaximum number of concurrent in-flight requests.
Trait Implementations§
Source§impl Clone for BridgeConfig
impl Clone for BridgeConfig
Source§fn clone(&self) -> BridgeConfig
fn clone(&self) -> BridgeConfig
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 moreSource§impl Debug for BridgeConfig
impl Debug for BridgeConfig
Auto Trait Implementations§
impl Freeze for BridgeConfig
impl RefUnwindSafe for BridgeConfig
impl Send for BridgeConfig
impl Sync for BridgeConfig
impl Unpin for BridgeConfig
impl UnsafeUnpin for BridgeConfig
impl UnwindSafe for BridgeConfig
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