Struct iroh_relay::server::RelayConfig  
source · pub struct RelayConfig<EC: Debug, EA: Debug = EC> {
    pub http_bind_addr: SocketAddr,
    pub tls: Option<TlsConfig<EC, EA>>,
    pub limits: Limits,
}Available on crate feature 
server only.Expand description
Configuration for the Relay HTTP and HTTPS server.
This includes the HTTP services hosted by the Relay server, the Relay /relay HTTP
endpoint is only one of the services served.
Fields§
§http_bind_addr: SocketAddrThe socket address on which the Relay HTTP server should bind.
Normally you’d choose port 80.  The bind address for the HTTPS server is
configured in RelayConfig::tls.
If RelayConfig::tls is None then this serves all the HTTP services without
TLS.
tls: Option<TlsConfig<EC, EA>>TLS configuration for the HTTPS server.
If None all the HTTP services that would be served here are served from
RelayConfig::http_bind_addr.
limits: LimitsRate limits.
Trait Implementations§
Auto Trait Implementations§
impl<EC, EA> Freeze for RelayConfig<EC, EA>
impl<EC, EA = EC> !RefUnwindSafe for RelayConfig<EC, EA>
impl<EC, EA> Send for RelayConfig<EC, EA>
impl<EC, EA = EC> !Sync for RelayConfig<EC, EA>
impl<EC, EA> Unpin for RelayConfig<EC, EA>
impl<EC, EA = EC> !UnwindSafe for RelayConfig<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