pub enum EndpointScope {
Federation,
Local,
Lan,
Uds,
}Expand description
Where this endpoint sits in the reachability graph.
Variants§
Federation
Public-facing relay (e.g. https://wireup.net). Crosses machines.
Local
Loopback-only relay (e.g. http://127.0.0.1:8771). Same-machine only.
Lan
LAN-bound relay (e.g. http://192.168.1.50:8771). Reachable from
other machines on the same network without going through federation.
v0.7.0-alpha.9: third scope for noble-creek-on-paul-mac ↔
running-light-on-spark style across-the-room pairing without
wireup.net hop. Visible to anyone who fetches the agent-card —
opt-in per session (operator passes --with-lan-relay <url> at
wire session new time).
Uds
Unix Domain Socket (e.g. unix:///path/to/local.sock). Same-host,
same-uid only. v0.7.0-alpha.16: framed primarily as a SECURITY
boundary — no bound TCP port (no firewall surface), SO_PEERCRED
kernel-attested peer uid (sister-session trust anchor), 0600
socket permissions. Performance win over loopback HTTP is real
but tiny (~1.3µs) and not the headline reason. Opt-in via
wire session new --with-uds; Unix-only (Windows falls back to
Local loopback).
Trait Implementations§
Source§impl Clone for EndpointScope
impl Clone for EndpointScope
Source§fn clone(&self) -> EndpointScope
fn clone(&self) -> EndpointScope
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 EndpointScope
impl Debug for EndpointScope
Source§impl<'de> Deserialize<'de> for EndpointScope
impl<'de> Deserialize<'de> for EndpointScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for EndpointScope
impl PartialEq for EndpointScope
Source§fn eq(&self, other: &EndpointScope) -> bool
fn eq(&self, other: &EndpointScope) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for EndpointScope
impl Serialize for EndpointScope
impl Copy for EndpointScope
impl Eq for EndpointScope
impl StructuralPartialEq for EndpointScope
Auto Trait Implementations§
impl Freeze for EndpointScope
impl RefUnwindSafe for EndpointScope
impl Send for EndpointScope
impl Sync for EndpointScope
impl Unpin for EndpointScope
impl UnsafeUnpin for EndpointScope
impl UnwindSafe for EndpointScope
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,
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
key and return true if they are equal.