Struct libp2p_core::connection::ConnectionLimits [−][src]
pub struct ConnectionLimits { /* fields omitted */ }The configurable connection limits.
By default no connection limits apply.
Implementations
impl ConnectionLimits[src]
impl ConnectionLimits[src]pub fn with_max_pending_incoming(self, limit: Option<u32>) -> Self[src]
Configures the maximum number of concurrently incoming connections being established.
pub fn with_max_pending_outgoing(self, limit: Option<u32>) -> Self[src]
Configures the maximum number of concurrently outgoing connections being established.
pub fn with_max_established_incoming(self, limit: Option<u32>) -> Self[src]
Configures the maximum number of concurrent established inbound connections.
pub fn with_max_established_outgoing(self, limit: Option<u32>) -> Self[src]
Configures the maximum number of concurrent established outbound connections.
pub fn with_max_established_per_peer(self, limit: Option<u32>) -> Self[src]
Configures the maximum number of concurrent established connections per peer, regardless of direction (incoming or outgoing).
Trait Implementations
impl Clone for ConnectionLimits[src]
impl Clone for ConnectionLimits[src]fn clone(&self) -> ConnectionLimits[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for ConnectionLimits[src]
impl Default for ConnectionLimits[src]fn default() -> ConnectionLimits[src]
Auto Trait Implementations
impl RefUnwindSafe for ConnectionLimits
impl RefUnwindSafe for ConnectionLimitsimpl Send for ConnectionLimits
impl Send for ConnectionLimitsimpl Sync for ConnectionLimits
impl Sync for ConnectionLimitsimpl Unpin for ConnectionLimits
impl Unpin for ConnectionLimitsimpl UnwindSafe for ConnectionLimits
impl UnwindSafe for ConnectionLimits