pub struct GatewaySection {
pub listen: String,
pub ping_interval_ms: u64,
pub idle_timeout_ms: u64,
pub writer_send_timeout_ms: u64,
pub drain_grace_ms: u64,
pub handshake_limit: HandshakeConfig,
}Fields§
§listen: StringListener address (host:port).
ping_interval_ms: u64WebSocket ping interval in milliseconds.
idle_timeout_ms: u64Idle timeout in milliseconds. Connections with no activity beyond this are closed.
writer_send_timeout_ms: u64Outbound writer send timeout in milliseconds.
If a client is slow and a write stalls longer than this, the session is closed to protect tail latency.
drain_grace_ms: u64Grace period (ms) after entering draining mode before process exits.
During draining, readiness becomes 503 and new upgrades are rejected.
handshake_limit: HandshakeConfigImplementations§
Source§impl GatewaySection
impl GatewaySection
pub fn validate(&self) -> Result<(), WsPrismError>
Trait Implementations§
Source§impl Debug for GatewaySection
impl Debug for GatewaySection
Source§impl Default for GatewaySection
impl Default for GatewaySection
Source§fn default() -> GatewaySection
fn default() -> GatewaySection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GatewaySection
impl<'de> Deserialize<'de> for GatewaySection
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GatewaySection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GatewaySection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GatewaySection
impl RefUnwindSafe for GatewaySection
impl Send for GatewaySection
impl Sync for GatewaySection
impl Unpin for GatewaySection
impl UnwindSafe for GatewaySection
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