pub struct GatewayLimits {
pub max_runs: usize,
pub max_clients_per_run: usize,
pub scrollback_events: usize,
pub max_frame_bytes: usize,
pub max_input_frames_per_second: u32,
pub input_queue_capacity: usize,
pub fanout_capacity: usize,
pub buffer_budget_bytes: Limit,
pub client_slots: Limit,
pub station_token_min_bytes: usize,
pub origin_bytes: Limit,
pub socket_buffer_bytes: usize,
}Expand description
Finite state, payload, fanout and input limits for one gateway.
Fields§
§max_runs: usizeMaximum number of live Runs.
max_clients_per_run: usizeMaximum simultaneous browser connections to one Run.
scrollback_events: usizeNumber of value frames retained per Run.
max_frame_bytes: usizeMaximum bytes in one guatiao WebSocket or ingress frame.
max_input_frames_per_second: u32Maximum browser input frames accepted per connection per second.
input_queue_capacity: usizeCapacity of the bounded queue between the gateway and its Stations.
fanout_capacity: usizeCapacity of each per-Run viewer fanout queue.
buffer_budget_bytes: LimitBytes the gateway may hold in buffers across every Run and connection; the configuration is refused when its limits could exceed it.
client_slots: LimitConnections the gateway keeps slots for; the configuration is refused when its Runs times connections per Run could exceed it.
station_token_min_bytes: usizeThe fewest bytes the Station token may hold.
origin_bytes: LimitThe most bytes the public origin may hold.
socket_buffer_bytes: usizeBytes the write buffer of a browser’s socket holds at least.
Trait Implementations§
Source§impl Clone for GatewayLimits
impl Clone for GatewayLimits
impl Copy for GatewayLimits
Source§impl Debug for GatewayLimits
impl Debug for GatewayLimits
Source§impl Default for GatewayLimits
impl Default for GatewayLimits
Source§impl From<&UnexGatewayLimits> for GatewayLimits
impl From<&UnexGatewayLimits> for GatewayLimits
Source§fn from(table: &UnexGatewayLimits) -> Self
fn from(table: &UnexGatewayLimits) -> Self
The record’s [gateway] table, an absent bound being as large as the type holds.