pub struct QuicConfig {
pub bind_addr: SocketAddr,
pub server_config: ServerConfig,
pub alternate_port: AlternatePortConfig,
}Available on crate feature
server only.Expand description
Configuration for the QUIC server.
Fields§
§bind_addr: SocketAddrThe socket address on which the QUIC server should bind.
Normally you’d chose port 7842, see crate::defaults::DEFAULT_RELAY_QUIC_PORT.
A second server will automatically be spawned on port + 1 for NAT port mapping variation testing.
server_config: ServerConfigThe TLS server configuration for the QUIC server.
If this [rustls::ServerConfig] does not support TLS 1.3, the QUIC server will fail
to spawn.
alternate_port: AlternatePortConfigSelect an additional port to listen on.
This may be used by nodes to check for NAT port binding variation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuicConfig
impl !RefUnwindSafe for QuicConfig
impl Send for QuicConfig
impl Sync for QuicConfig
impl Unpin for QuicConfig
impl !UnwindSafe for QuicConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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