pub struct WsConfig {
pub headers: Vec<(String, String)>,
pub auto_pong: bool,
}Expand description
Configuration for WebSocket client connections.
Fields§
§headers: Vec<(String, String)>Custom headers to include in the upgrade request.
auto_pong: boolWhether to automatically respond to ping messages.
Implementations§
Source§impl WsConfig
impl WsConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WsConfig
impl RefUnwindSafe for WsConfig
impl Send for WsConfig
impl Sync for WsConfig
impl Unpin for WsConfig
impl UnsafeUnpin for WsConfig
impl UnwindSafe for WsConfig
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