pub struct TqWebsocket { /* private fields */ }Expand description
天勤 WebSocket 基类
基于 yawc 库实现 WebSocket 连接
Implementations§
Source§impl TqWebsocket
impl TqWebsocket
Sourcepub fn new(url: String, config: WebSocketConfig) -> Self
pub fn new(url: String, config: WebSocketConfig) -> Self
创建新的 WebSocket 连接
Auto Trait Implementations§
impl Freeze for TqWebsocket
impl !RefUnwindSafe for TqWebsocket
impl Send for TqWebsocket
impl Sync for TqWebsocket
impl Unpin for TqWebsocket
impl !UnwindSafe for TqWebsocket
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