Struct libp2p_bitswap::BitswapConfig
source · pub struct BitswapConfig {
pub request_timeout: Duration,
pub connection_keep_alive: Duration,
}
Expand description
Bitswap configuration.
Fields§
§request_timeout: Duration
Timeout of a request.
connection_keep_alive: Duration
Time a connection is kept alive.
Implementations§
source§impl BitswapConfig
impl BitswapConfig
Trait Implementations§
source§impl Clone for BitswapConfig
impl Clone for BitswapConfig
source§fn clone(&self) -> BitswapConfig
fn clone(&self) -> BitswapConfig
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 BitswapConfig
impl Debug for BitswapConfig
source§impl Default for BitswapConfig
impl Default for BitswapConfig
source§impl PartialEq<BitswapConfig> for BitswapConfig
impl PartialEq<BitswapConfig> for BitswapConfig
source§fn eq(&self, other: &BitswapConfig) -> bool
fn eq(&self, other: &BitswapConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BitswapConfig
impl Eq for BitswapConfig
impl StructuralEq for BitswapConfig
impl StructuralPartialEq for BitswapConfig
Auto Trait Implementations§
impl RefUnwindSafe for BitswapConfig
impl Send for BitswapConfig
impl Sync for BitswapConfig
impl Unpin for BitswapConfig
impl UnwindSafe for BitswapConfig
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