pub enum WebSocketContext {
#[non_exhaustive] ClientToServer {
src: SocketAddr,
dst: Uri,
},
#[non_exhaustive] ServerToClient {
src: Uri,
dst: SocketAddr,
},
}Expand description
Context for websocket messages.
Variants§
#[non_exhaustive]ClientToServer
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
src: SocketAddrAddress of the client.
#[non_exhaustive]ServerToClient
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
dst: SocketAddrAddress of the client.
Trait Implementations§
Source§impl Clone for WebSocketContext
impl Clone for WebSocketContext
Source§fn clone(&self) -> WebSocketContext
fn clone(&self) -> WebSocketContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebSocketContext
impl Debug for WebSocketContext
impl Eq for WebSocketContext
Source§impl Hash for WebSocketContext
impl Hash for WebSocketContext
Source§impl PartialEq for WebSocketContext
impl PartialEq for WebSocketContext
impl StructuralPartialEq for WebSocketContext
Auto Trait Implementations§
impl !Freeze for WebSocketContext
impl RefUnwindSafe for WebSocketContext
impl Send for WebSocketContext
impl Sync for WebSocketContext
impl Unpin for WebSocketContext
impl UnsafeUnpin for WebSocketContext
impl UnwindSafe for WebSocketContext
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.