pub struct WebsocketConnection { /* private fields */ }Expand description
Represents websocket connection.
Implementations§
Source§impl WebsocketConnection
impl WebsocketConnection
pub fn new(callback_id: CallbackId) -> WebsocketConnection
pub fn send(&self, message: impl Into<String>)
Trait Implementations§
Source§impl Clone for WebsocketConnection
impl Clone for WebsocketConnection
Source§fn clone(&self) -> WebsocketConnection
fn clone(&self) -> WebsocketConnection
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 PartialEq for WebsocketConnection
impl PartialEq for WebsocketConnection
impl StructuralPartialEq for WebsocketConnection
Auto Trait Implementations§
impl Freeze for WebsocketConnection
impl RefUnwindSafe for WebsocketConnection
impl Send for WebsocketConnection
impl Sync for WebsocketConnection
impl Unpin 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