pub enum SocketKind {
Req,
Rep,
Quic,
}Expand description
Socket type identifier for endpoint registration.
Reduced (#380) from the historical ZMQ-era taxonomy to the variants that are actually constructed by live code:
SocketKind::Rep— the server-side RPC socket used by every service registration and client resolution today.SocketKind::Req— the client-side RPC socket, the logical counterpart ofRep. Currently no in-tree client constructs it (the resolver/registry are kind-symmetric), but it is retained to keep the client/server pair self-documenting and to avoid forcing future clients to misuseRep.SocketKind::Quic— the QUIC/WebTransport transport used by the moq stream plane. Unlike local REP/REQ endpoints, QUIC has no synthesized default: network reach must be explicitly registered or announced.
The dropped variants (Dealer, Router, Pub, Sub, XPub, XSub,
Push, Pull, Pair, Stream) were ZMQ socket kinds carried by the
pre-moq stack; the moq migration replaced Pub/Sub and the rest were never
constructed by live code (only exhaustive match arms and registry-suffix
tests referenced them). SocketKind is an internal identifier — it is not
serialized onto the wire (only its lowercase name string is, in
ServiceSummary::socket_kinds), so this reduction is wire-compatible.
Variants§
Req
REQ socket (client request) — logical client-side counterpart to Rep.
Rep
REP socket (server reply) — the live server-side RPC socket.
Quic
QUIC/WebTransport transport type — the moq stream-plane socket.
Implementations§
Trait Implementations§
Source§impl Clone for SocketKind
impl Clone for SocketKind
Source§fn clone(&self) -> SocketKind
fn clone(&self) -> SocketKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SocketKind
impl Debug for SocketKind
Source§impl Hash for SocketKind
impl Hash for SocketKind
Source§impl PartialEq for SocketKind
impl PartialEq for SocketKind
Source§fn eq(&self, other: &SocketKind) -> bool
fn eq(&self, other: &SocketKind) -> bool
self and other values to be equal, and is used by ==.impl Copy for SocketKind
impl Eq for SocketKind
impl StructuralPartialEq for SocketKind
Auto Trait Implementations§
impl Freeze for SocketKind
impl RefUnwindSafe for SocketKind
impl Send for SocketKind
impl Sync for SocketKind
impl Unpin for SocketKind
impl UnsafeUnpin for SocketKind
impl UnwindSafe for SocketKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more