Struct litep2p::transport::ConnectionLimitsConfig
source · pub struct ConnectionLimitsConfig { /* private fields */ }
Expand description
Configuration for the connection limits.
Implementations§
source§impl ConnectionLimitsConfig
impl ConnectionLimitsConfig
sourcepub fn max_incoming_connections(self, limit: Option<usize>) -> Self
pub fn max_incoming_connections(self, limit: Option<usize>) -> Self
Configures the maximum number of incoming connections that can be established.
sourcepub fn max_outgoing_connections(self, limit: Option<usize>) -> Self
pub fn max_outgoing_connections(self, limit: Option<usize>) -> Self
Configures the maximum number of outgoing connections that can be established.
Trait Implementations§
source§impl Clone for ConnectionLimitsConfig
impl Clone for ConnectionLimitsConfig
source§fn clone(&self) -> ConnectionLimitsConfig
fn clone(&self) -> ConnectionLimitsConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConnectionLimitsConfig
impl Debug for ConnectionLimitsConfig
source§impl Default for ConnectionLimitsConfig
impl Default for ConnectionLimitsConfig
source§fn default() -> ConnectionLimitsConfig
fn default() -> ConnectionLimitsConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConnectionLimitsConfig
impl RefUnwindSafe for ConnectionLimitsConfig
impl Send for ConnectionLimitsConfig
impl Sync for ConnectionLimitsConfig
impl Unpin for ConnectionLimitsConfig
impl UnwindSafe for ConnectionLimitsConfig
Blanket Implementations§
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)