Struct libp2p_core::connection::ConnectionLimits [−][src]
pub struct ConnectionLimits { /* fields omitted */ }
Expand description
The configurable connection limits.
By default no connection limits apply.
Implementations
Configures the maximum number of concurrently incoming connections being established.
Configures the maximum number of concurrently outgoing connections being established.
Configures the maximum number of concurrent established inbound connections.
Configures the maximum number of concurrent established outbound connections.
Configures the maximum number of concurrent established connections (both inbound and outbound).
Note: This should be used in conjunction with
ConnectionLimits::with_max_established_incoming
to prevent possible
eclipse attacks (all connections being inbound).
Configures the maximum number of concurrent established connections per peer, regardless of direction (incoming or outgoing).
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConnectionLimits
impl Send for ConnectionLimits
impl Sync for ConnectionLimits
impl Unpin for ConnectionLimits
impl UnwindSafe for ConnectionLimits
Blanket Implementations
Mutably borrows from an owned value. Read more