pub struct NetworkingOptions {
pub relay_mode: Option<String>,
pub relays: Vec<String>,
pub bind_addrs: Vec<String>,
pub idle_timeout_ms: Option<u64>,
pub proxy_url: Option<String>,
pub proxy_from_env: bool,
pub disabled: bool,
}Expand description
Networking / QUIC transport configuration.
Fields§
§relay_mode: Option<String>Relay server mode. "default", "staging", "disabled", or "custom". Default: "default".
relays: Vec<String>Custom relay server URLs. Only used when relay_mode is "custom".
bind_addrs: Vec<String>UDP socket addresses to bind. Empty means OS-assigned.
idle_timeout_ms: Option<u64>Milliseconds before an idle QUIC connection is cleaned up.
proxy_url: Option<String>HTTP proxy URL for relay traffic.
proxy_from_env: boolRead HTTP_PROXY / HTTPS_PROXY env vars for proxy config.
disabled: boolDisable relay servers and DNS discovery entirely. Overrides relay_mode.
Useful for in-process tests where endpoints connect via direct addresses.
Trait Implementations§
Source§impl Clone for NetworkingOptions
impl Clone for NetworkingOptions
Source§fn clone(&self) -> NetworkingOptions
fn clone(&self) -> NetworkingOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NetworkingOptions
impl Debug for NetworkingOptions
Source§impl Default for NetworkingOptions
impl Default for NetworkingOptions
Source§fn default() -> NetworkingOptions
fn default() -> NetworkingOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NetworkingOptions
impl RefUnwindSafe for NetworkingOptions
impl Send for NetworkingOptions
impl Sync for NetworkingOptions
impl Unpin for NetworkingOptions
impl UnsafeUnpin for NetworkingOptions
impl UnwindSafe for NetworkingOptions
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
Mutably borrows from an owned value. Read more