[−][src]Struct libp2p_bitswap::BitswapConfig
Bitswap configuration.
Fields
store: Box<dyn BitswapStore<P>>
The bitswap store.
request_timeout: Duration
Timeout of a request.
connection_keep_alive: Duration
Time a connection is kept alive.
receive_limit: NonZeroU16
The number of concurrent requests per peer.
Implementations
impl<P: StoreParams> BitswapConfig<P>
[src]
pub fn new<S: BitswapStore<P>>(store: S) -> Self
[src]
Creates a new BitswapConfig
.
Auto Trait Implementations
impl<P> !RefUnwindSafe for BitswapConfig<P>
[src]
impl<P> Send for BitswapConfig<P>
[src]
impl<P> Sync for BitswapConfig<P>
[src]
impl<P> Unpin for BitswapConfig<P>
[src]
impl<P> !UnwindSafe for BitswapConfig<P>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> References<RawCodec> for T
pub fn references<R, E>(
_c: RawCodec,
_r: &mut R,
_set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read,
_c: RawCodec,
_r: &mut R,
_set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,