pub struct WsSessionConfig {
pub heartbeat_interval: Duration,
pub pong_timeout: Duration,
}Expand description
Configuration for a WebSocket session.
Fields§
§heartbeat_interval: DurationHow often to send Ping frames.
pong_timeout: DurationHow long to wait for a Pong before considering the connection dead.
Trait Implementations§
Source§impl Clone for WsSessionConfig
impl Clone for WsSessionConfig
Source§fn clone(&self) -> WsSessionConfig
fn clone(&self) -> WsSessionConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 WsSessionConfig
impl Debug for WsSessionConfig
Auto Trait Implementations§
impl Freeze for WsSessionConfig
impl RefUnwindSafe for WsSessionConfig
impl Send for WsSessionConfig
impl Sync for WsSessionConfig
impl Unpin for WsSessionConfig
impl UnsafeUnpin for WsSessionConfig
impl UnwindSafe for WsSessionConfig
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