pub struct ProxySessionConfig {
pub draft: DraftVersion,
pub upstream_transport: UpstreamTransportType,
pub upstream_addr: String,
pub skip_upstream_cert_verify: bool,
pub upstream_ca_certs: Vec<Vec<u8>>,
pub upstream_connect_timeout_secs: u64,
}Expand description
Configuration for a proxy session’s upstream connection.
Fields§
§draft: DraftVersionThe MoQT draft version to use for parsing.
upstream_transport: UpstreamTransportTypeThe transport type to use for the upstream connection.
upstream_addr: StringUpstream relay address (e.g., "192.168.1.10:4443" for QUIC).
skip_upstream_cert_verify: boolWhether to skip TLS verification for the upstream connection.
upstream_ca_certs: Vec<Vec<u8>>Custom CA certificates for the upstream connection (DER-encoded).
upstream_connect_timeout_secs: u64Timeout in seconds for the upstream connection attempt. 0 means no timeout.
Implementations§
Source§impl ProxySessionConfig
impl ProxySessionConfig
Sourcepub fn upstream_alpn(&self, client_alpn: &[u8]) -> Vec<Vec<u8>>
pub fn upstream_alpn(&self, client_alpn: &[u8]) -> Vec<Vec<u8>>
Returns the ALPN protocol identifiers for the upstream connection.
For QUIC upstreams, mirrors the negotiated client ALPN so we connect
to the relay with the same protocol the client is speaking. Falls
back to self.draft.quic_alpn() if the client ALPN is empty
(e.g., the listener didn’t capture it).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProxySessionConfig
impl RefUnwindSafe for ProxySessionConfig
impl Send for ProxySessionConfig
impl Sync for ProxySessionConfig
impl Unpin for ProxySessionConfig
impl UnsafeUnpin for ProxySessionConfig
impl UnwindSafe for ProxySessionConfig
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