Struct bee_network::NetworkConfig[][src]

pub struct NetworkConfig { /* fields omitted */ }
Expand description

The network configuration.

Implementations

Creates a new NetworkConfig.

Returns a NetworkConfigBuilder to construct a NetworkConfig iteratively.

Replaces the address, but keeps the port of the bind address.

The argument addr must be either the Ip4, Ip6, or Dns variant of Protocol.

Replaces the port of the bind address.

The argument port must be the TCP variant of Protocol.

Adds a static peer.

Returns the configured bind address as a Multiaddr.

Returns the number of seconds at which reconnect attempts occur.

Returns the maximum number of unknown peers that are allowed to connect.

Returns the statically configured peers.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.