pub struct ServerConfig<EC: Debug, EA: Debug = EC> {
pub relay: Option<RelayConfig<EC, EA>>,
pub quic: Option<QuicConfig>,
pub metrics_addr: Option<SocketAddr>,
}Available on crate feature
server only.Expand description
Configuration for the full Relay.
Be aware the generic parameters are for when using the Let’s Encrypt TLS configuration.
If not used dummy ones need to be provided, e.g. ServerConfig::<(), ()>::default().
Fields§
§relay: Option<RelayConfig<EC, EA>>Configuration for the Relay server, disabled if None.
quic: Option<QuicConfig>Configuration for the QUIC server, disabled if None.
metrics_addr: Option<SocketAddr>Available on crate feature
metrics only.Socket to serve metrics on.
Trait Implementations§
Auto Trait Implementations§
impl<EC, EA> Freeze for ServerConfig<EC, EA>
impl<EC, EA = EC> !RefUnwindSafe for ServerConfig<EC, EA>
impl<EC, EA> Send for ServerConfig<EC, EA>
impl<EC, EA = EC> !Sync for ServerConfig<EC, EA>
impl<EC, EA> Unpin for ServerConfig<EC, EA>
impl<EC, EA = EC> !UnwindSafe for ServerConfig<EC, EA>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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