pub struct WebSocketGatewayConfig {
pub service_name: String,
pub display_name: String,
pub channels: Vec<ChannelConfig>,
pub max_connections_per_client: u32,
pub heartbeat_interval_secs: u64,
pub connection_timeout_secs: u64,
pub server: ServerConfig,
}Expand description
WebSocket gateway configuration
Fields§
§service_name: StringService name
display_name: StringDisplay name for documentation
channels: Vec<ChannelConfig>Channels/rooms configuration
max_connections_per_client: u32Maximum connections per client
heartbeat_interval_secs: u64Heartbeat interval in seconds
connection_timeout_secs: u64Connection timeout in seconds
server: ServerConfigServer configuration
Trait Implementations§
Source§impl Clone for WebSocketGatewayConfig
impl Clone for WebSocketGatewayConfig
Source§fn clone(&self) -> WebSocketGatewayConfig
fn clone(&self) -> WebSocketGatewayConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebSocketGatewayConfig
impl Debug for WebSocketGatewayConfig
Source§impl Default for WebSocketGatewayConfig
impl Default for WebSocketGatewayConfig
Source§impl<'de> Deserialize<'de> for WebSocketGatewayConfig
impl<'de> Deserialize<'de> for WebSocketGatewayConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WebSocketGatewayConfig
impl RefUnwindSafe for WebSocketGatewayConfig
impl Send for WebSocketGatewayConfig
impl Sync for WebSocketGatewayConfig
impl Unpin for WebSocketGatewayConfig
impl UnwindSafe for WebSocketGatewayConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)