pub struct TransportConfig {
pub onion_url: Option<String>,
pub clearnet_url: Option<String>,
pub tor_socks: Option<String>,
pub tor_bridge: Option<String>,
pub pin: Option<String>,
pub order: Option<Vec<String>>,
}Expand description
huddle 1.0: how to reach the relay backend — the bundle of transport
inputs resolved by main.rs (CLI + config) and handed to the core. The
core turns these into the ordered set of TransportProfile doors.
Fields§
§onion_url: Option<String>The onion relay ws URL (ws://<onion>.onion:80/ws), or None for
--no-server. Resolved by the caller (includes the baked-in default).
clearnet_url: Option<String>A clearnet relay URL — ws://<ip>:<port>/ws or wss://host/ws. The
scheme decides which clearnet door (plain / TLS) is usable.
tor_socks: Option<String>Local Tor SOCKS5 proxy (None → DEFAULT_TOR_SOCKS).
tor_bridge: Option<String>Optional bridge line for the bridge door (Arti build / labeling).
pin: Option<String>Pin a single door by TransportId::as_str (CLI --transport).
order: Option<Vec<String>>Explicit fallback order as TransportId::as_str tokens (CLI
--transport-order).
Implementations§
Source§impl TransportConfig
impl TransportConfig
Sourcepub fn onion_only(url: impl Into<String>) -> Self
pub fn onion_only(url: impl Into<String>) -> Self
An onion-only config (the common case + most tests).
Trait Implementations§
Source§impl Clone for TransportConfig
impl Clone for TransportConfig
Source§fn clone(&self) -> TransportConfig
fn clone(&self) -> TransportConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for TransportConfig
impl Default for TransportConfig
Source§fn default() -> TransportConfig
fn default() -> TransportConfig
Auto Trait Implementations§
impl Freeze for TransportConfig
impl RefUnwindSafe for TransportConfig
impl Send for TransportConfig
impl Sync for TransportConfig
impl Unpin for TransportConfig
impl UnsafeUnpin for TransportConfig
impl UnwindSafe for TransportConfig
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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