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
Auto Trait Implementations
impl RefUnwindSafe for NetworkConfig
impl Send for NetworkConfig
impl Sync for NetworkConfig
impl Unpin for NetworkConfig
impl UnwindSafe for NetworkConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self