pub struct WebSocket {
pub socket: u32,
}Expand description
An open (or opening) WebSocket.
Fields§
§socket: u32Implementations§
Source§impl WebSocket
impl WebSocket
Sourcepub fn open(url: &str, headers: &[(String, String)]) -> Result<Self>
pub fn open(url: &str, headers: &[(String, String)]) -> Result<Self>
Starts connecting to url with extra request headers; the
socket’s Open or Closed event follows.
Trait Implementations§
impl Copy for WebSocket
impl Eq for WebSocket
impl StructuralPartialEq for WebSocket
Auto Trait Implementations§
impl Freeze for WebSocket
impl RefUnwindSafe for WebSocket
impl Send for WebSocket
impl Sync for WebSocket
impl Unpin for WebSocket
impl UnsafeUnpin for WebSocket
impl UnwindSafe for WebSocket
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