pub struct ProducerReachConfig {
pub moql_server_identity: Option<MoqlServerIdentity>,
pub relay_moql_server_identity: Option<MoqlServerIdentity>,
pub iroh_node_id: Option<[u8; 32]>,
pub quic_reach: Option<NodeStreamReach>,
pub relay: Option<TransportConfig>,
}Expand description
A node/server’s moq reach inputs (#384) — the per-server context that builds
a producer’s StreamInfo.reach.
Plain config data (Clone, Send + Sync). The common-case relay is a
server-global value (often an anycast PDS / federation-anchor address)
carried in [relay]; a per-stream override is supplied at build time via
ProducerReachConfig::reach_with_relay.
Fields§
§moql_server_identity: Option<MoqlServerIdentity>Resolver-verified accepted-state witness for this service’s signed StreamInfo. Native Iroh subscribers require it for mutual admission.
relay_moql_server_identity: Option<MoqlServerIdentity>Resolver-verified accepted-state witness for the configured relay. This is deliberately separate from the producing service’s witness: carrier EndpointId pinning is not application identity.
iroh_node_id: Option<[u8; 32]>The node’s own iroh EndpointId (Ed25519 public key, 32 bytes) when the
iroh substrate is bound (#357). None → no iroh-direct reach advertised.
quic_reach: Option<NodeStreamReach>The node’s network-routable Quic / WebTransport reach (the bound QUIC
address + TLS name + leaf-cert pins). None → no Quic-direct reach
(UDS-only / unit-test deployments).
relay: Option<TransportConfig>The server-global producer-chosen relay (#358), in wire-reach form.
None → direct-only advertisement (S1/S2 behaviour). A per-stream
override may supersede this for an individual stream.
Implementations§
Source§impl ProducerReachConfig
impl ProducerReachConfig
Sourcepub fn reach(&self) -> Vec<Destination>
pub fn reach(&self) -> Vec<Destination>
Build this server’s StreamInfo.reach using its server-global relay.
Equivalent to reach_with_relay(RelayChoice::ServerDefault). See
ProducerReachConfig::reach_with_relay for the per-stream override and
the reach-ordering contract.
Sourcepub fn reach_with_relay(&self, relay_choice: RelayChoice) -> Vec<Destination>
pub fn reach_with_relay(&self, relay_choice: RelayChoice) -> Vec<Destination>
Build a stream’s StreamInfo.reach, applying a per-stream relay choice (#384).
Reach ORDERING contract (unchanged — select_reach does the QoS reorder
downstream): iroh-direct first, then Quic, then relay (“direct-first”
wire order). Server authority is preserved: the client may only route
among the reaches advertised here, so a relay-only stream
(RelayChoice::Only) omits the direct reaches and stays anonymized.
Trait Implementations§
Source§impl Clone for ProducerReachConfig
impl Clone for ProducerReachConfig
Source§fn clone(&self) -> ProducerReachConfig
fn clone(&self) -> ProducerReachConfig
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 ProducerReachConfig
impl Debug for ProducerReachConfig
Source§impl Default for ProducerReachConfig
impl Default for ProducerReachConfig
Source§fn default() -> ProducerReachConfig
fn default() -> ProducerReachConfig
Auto Trait Implementations§
impl Freeze for ProducerReachConfig
impl RefUnwindSafe for ProducerReachConfig
impl Send for ProducerReachConfig
impl Sync for ProducerReachConfig
impl Unpin for ProducerReachConfig
impl UnsafeUnpin for ProducerReachConfig
impl UnwindSafe for ProducerReachConfig
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<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