Skip to main content

Crate ave_network

Crate ave_network 

Source
Expand description

§Network package.

Re-exports§

pub use error::Error;

Modules§

error
Network errors.
metrics
Prometheus metrics for the network worker.

Structs§

ComunicateInfo
Event enumeration for the Helper service.
Config
Network config
ControlListConfig
Configuration for the control list behaviour.
Monitor
Actor in charge of monitoring the network, allows communication between the actor system and the network.
NetworkService
The network service.
NetworkWorker
Main network worker. Must be polled in order for the network to advance.
PeerId
Identifier of a peer of the network.
PublicKeyEd25519
An Ed25519 public key.
PublicKeyLibP2P
The public key of a node’s identity keypair.
ReqResConfig
The configuration for a Behaviour protocol.
ResolvedSpec
Resolved machine parameters ready to be consumed by the network backend. Network tuning is computed directly from these two values.
RoutingConfig
Configuration for the routing behaviour.
RoutingNode
A node in the routing table.

Enums§

Command
Command enumeration for the network service.
CommandHelper
Command enumeration for the Helper service.
Event
Event enumeration for the network service.
MachineProfile
Predefined instance profiles with fixed vCPU and RAM. They only exist to provide convenient default values — the actual network tuning is derived from the resolved ram_mb and cpu_cores.
MachineSpec
How to size the network backend.
MemoryLimitsConfig
The network configuration. Memory-based connection limit policy.
MonitorMessage
Monitor actor messages
MonitorResponse
Monitor actor responses
NetworkState
Network state.
NodeType
Type of a node.

Functions§

resolve_spec
Resolve the final network sizing parameters from a MachineSpec: