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§
§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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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