pub struct RelayConfig<EC: Debug, EA: Debug = EC> {
pub http_bind_addr: SocketAddr,
pub tls: Option<TlsConfig<EC, EA>>,
pub limits: Limits,
}
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
Available on crate feature
iroh-relay
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: SocketAddr
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
The 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>>
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
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: Limits
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
Rate 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> Sync for RelayConfig<EC, EA>
impl<EC, EA> Unpin for RelayConfig<EC, EA>
impl<EC, EA = EC> !UnwindSafe for RelayConfig<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