Module network
Expand description
Network state and peer observation API traits.
Modules§
Structs§
- Bounded
Vec - Wrapper for
Vecthat has an explicit upper bound on the number of elements. The Structure remains heap-allocated to avoid blowing up the size of types where it is used. - Health
Iter - An iterator over the variants of Health
- PeerId
- Identifier of a peer of the network.
Enums§
- Health
- Network health represented with colors, where green is the best and red is the worst possible observed network quality.
- Network
Event - Events generated by the network for external consumption.
Traits§
- Network
Builder - Builder for a network object that returns the network specified in
the
NetworkBuilder::Networkassociated type. - Network
Stream Control - Control object for the opening and receiving of network connections in the form of network streams.
- Network
View - Trait representing a read-only view of the network state.
Type Aliases§
- Boxed
Process Fn - Type alias for a boxed function returning a boxed future.
- PathId
- Identifier for a path traversed using an allowed
DestinationRoutingover the network.