pub struct ServerConfig<EC: Debug, EA: Debug = EC> {
pub relay: Option<RelayConfig<EC, EA>>,
pub stun: Option<StunConfig>,
pub metrics_addr: Option<SocketAddr>,
}
Available on crate feature
iroh-relay
only.Expand description
Configuration for the full Relay & STUN server.
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
.
stun: Option<StunConfig>
Configuration for the STUN 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> 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