pub enum EndpointType {
Inproc {
endpoint: String,
},
Ipc {
path: PathBuf,
},
SystemdFd {
fd: RawFd,
client_path: PathBuf,
},
Quic {
addr: SocketAddr,
server_name: String,
auth: QuicServerAuth,
},
Iroh {
node_id: [u8; 32],
direct_addrs: Vec<SocketAddr>,
relay_url: Option<String>,
},
}Expand description
Endpoint type (without encryption config)
Variants§
Inproc
In-process endpoint (zero-copy, same process).
Format: inproc://hyprstream/service
Ipc
Unix domain socket (IPC) endpoint.
Format: ipc:///path/to/socket
SystemdFd
Systemd socket activation endpoint.
Used when systemd passes a pre-bound file descriptor to the service.
The fd is used for server-side binding,
while client_path provides the IPC path for clients to connect.
Fields
Quic
QUIC transport endpoint (ZMTP 3.1 over QUIC).
Provides TLS 1.3 encryption built into the transport layer. ZMTP handshake uses NULL mechanism since QUIC already provides wire confidentiality.
Format: quic://hostname:port
Fields
addr: SocketAddrSocket address to bind (server) or connect (client)
server_name: StringServer hostname — used as the WebPKI validation name (WebPki) and
the TLS SNI. Ignored by Pinned (which dials by IP and matches the
cert hash).
auth: QuicServerAuthHow the client authenticates this server (WebPKI, cert-hash pin, or — later — RFC 7250 raw key). Public material only.
Iroh
iroh transport endpoint (RPC over ALPN_HYPRSTREAM_RPC).
The optional NAT-traversing dial. Unlike QUIC’s channel-only cert pin,
iroh binds the connection to the peer’s EndpointId (its Ed25519 public
key), authenticating only the carrier endpoint, not application identity. All
fields are serializable primitives so TransportConfig stays
Clone + Eq and wire-publishable (a DID-doc service entry).
Format: iroh://{hex node_id}
Implementations§
Source§impl EndpointType
impl EndpointType
Sourcepub fn forbids_cleartext_envelope(&self) -> bool
pub fn forbids_cleartext_envelope(&self) -> bool
Whether this endpoint class forbids cleartext request envelopes.
iroh and cross-host QUIC/WebTransport are untrusted carriers for RPC envelope confidentiality. Loopback QUIC is treated as local test/dev plumbing; same-process and same-host UDS remain cleartext-allowed.
Trait Implementations§
Source§impl Clone for EndpointType
impl Clone for EndpointType
Source§fn clone(&self) -> EndpointType
fn clone(&self) -> EndpointType
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 EndpointType
impl Debug for EndpointType
Source§impl PartialEq for EndpointType
impl PartialEq for EndpointType
Source§fn eq(&self, other: &EndpointType) -> bool
fn eq(&self, other: &EndpointType) -> bool
self and other values to be equal, and is used by ==.impl Eq for EndpointType
impl StructuralPartialEq for EndpointType
Auto Trait Implementations§
impl Freeze for EndpointType
impl RefUnwindSafe for EndpointType
impl Send for EndpointType
impl Sync for EndpointType
impl Unpin for EndpointType
impl UnsafeUnpin for EndpointType
impl UnwindSafe for EndpointType
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