pub struct WebSocketConnection {
pub url: String,
pub headers: HeaderMap,
}Expand description
Prepared WebSocket URL and authentication headers. Connect with your chosen WebSocket library; keep the headers private and do not follow cross-host redirects.
Fields§
§url: String§headers: HeaderMapTrait Implementations§
Auto Trait Implementations§
impl Freeze for WebSocketConnection
impl RefUnwindSafe for WebSocketConnection
impl Send for WebSocketConnection
impl Sync for WebSocketConnection
impl Unpin for WebSocketConnection
impl UnsafeUnpin for WebSocketConnection
impl UnwindSafe for WebSocketConnection
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