Struct worker::WebSocketPair
source · pub struct WebSocketPair {
pub client: WebSocket,
pub server: WebSocket,
}
Expand description
Struct holding the values for a JavaScript WebSocketPair
Fields§
§client: WebSocket
§server: WebSocket
Implementations§
Trait Implementations§
source§impl Clone for WebSocketPair
impl Clone for WebSocketPair
source§fn clone(&self) -> WebSocketPair
fn clone(&self) -> WebSocketPair
Returns a copy 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 Debug for WebSocketPair
impl Debug for WebSocketPair
source§impl PartialEq<WebSocketPair> for WebSocketPair
impl PartialEq<WebSocketPair> for WebSocketPair
source§fn eq(&self, other: &WebSocketPair) -> bool
fn eq(&self, other: &WebSocketPair) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for WebSocketPair
impl StructuralEq for WebSocketPair
impl StructuralPartialEq for WebSocketPair
Auto Trait Implementations§
impl RefUnwindSafe for WebSocketPair
impl !Send for WebSocketPair
impl !Sync for WebSocketPair
impl Unpin for WebSocketPair
impl UnwindSafe for WebSocketPair
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