Struct ckb_network::network::NetworkState[][src]

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

The global shared state of the network module

Implementations

Init from config

fork flag

Get peer id of local node

Get local node’s peer id in base58 format string

Get local node’s listen address list

use a filter to get protocol id list

Dial just identify protocol

Dial just feeler protocol

Network message processing controller, default is true, if false, discard any received messages

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

TODO(doc): @quake

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.