pub struct WsIdleTimeout(pub u64);Expand description
An established WebSocket connection. Obtained inside the
WebSocketUpgrade::on_upgrade callback.
The configured WebSocket idle bound, seeded into the call by the engine.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for WsIdleTimeout
impl Clone for WsIdleTimeout
Source§fn clone(&self) -> WsIdleTimeout
fn clone(&self) -> WsIdleTimeout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WsIdleTimeout
Auto Trait Implementations§
impl Freeze for WsIdleTimeout
impl RefUnwindSafe for WsIdleTimeout
impl Send for WsIdleTimeout
impl Sync for WsIdleTimeout
impl Unpin for WsIdleTimeout
impl UnsafeUnpin for WsIdleTimeout
impl UnwindSafe for WsIdleTimeout
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