pub struct NetworkState { /* fields omitted */ }
Expand description
The global shared state of the network module
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
impl<T> Any for T where
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,