Struct ipfs_embed::config::BitswapConfig
source · Expand description
Bitswap configuration.
Fields§
§request_timeout: DurationTimeout of a request.
connection_keep_alive: DurationTime a connection is kept alive.
Implementations§
source§impl BitswapConfig
impl BitswapConfig
sourcepub fn new() -> BitswapConfig
pub fn new() -> BitswapConfig
Creates a new 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§fn default() -> BitswapConfig
fn default() -> BitswapConfig
Returns the “default value” for a type. Read more