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>) -> ConnectionLimits
[src]
Configures the maximum number of concurrently incoming connections being established.
pub fn with_max_pending_outgoing(self, limit: Option<u32>) -> ConnectionLimits
[src]
Configures the maximum number of concurrently outgoing connections being established.
pub fn with_max_established_incoming(
self,
limit: Option<u32>
) -> ConnectionLimits
[src]
self,
limit: Option<u32>
) -> ConnectionLimits
Configures the maximum number of concurrent established inbound connections.
pub fn with_max_established_outgoing(
self,
limit: Option<u32>
) -> ConnectionLimits
[src]
self,
limit: Option<u32>
) -> ConnectionLimits
Configures the maximum number of concurrent established outbound connections.
pub fn with_max_established_per_peer(
self,
limit: Option<u32>
) -> ConnectionLimits
[src]
self,
limit: Option<u32>
) -> ConnectionLimits
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]pub fn clone(&self) -> ConnectionLimits
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ConnectionLimits
[src]
impl Debug for ConnectionLimits
[src]impl Default for ConnectionLimits
[src]
impl Default for ConnectionLimits
[src]