Struct rust_ipfs::p2p::SwarmConfig
source · pub struct SwarmConfig {
pub connection: ConnectionLimits,
pub dial_concurrency_factor: NonZeroU8,
pub notify_handler_buffer_size: NonZeroUsize,
pub connection_event_buffer_size: usize,
pub max_inbound_stream: usize,
}
Fields§
§connection: ConnectionLimits
§dial_concurrency_factor: NonZeroU8
§notify_handler_buffer_size: NonZeroUsize
§connection_event_buffer_size: usize
§max_inbound_stream: usize
Trait Implementations§
source§impl Clone for SwarmConfig
impl Clone for SwarmConfig
source§fn clone(&self) -> SwarmConfig
fn clone(&self) -> SwarmConfig
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 moreAuto Trait Implementations§
impl RefUnwindSafe for SwarmConfig
impl Send for SwarmConfig
impl Sync for SwarmConfig
impl Unpin for SwarmConfig
impl UnwindSafe for SwarmConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§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