pub struct Topology {
pub base_addr: String,
pub population: i64,
pub connected: i64,
pub timestamp: String,
pub nn_low_watermark: i64,
pub depth: u8,
pub reachability: String,
pub network_availability: String,
pub bins: Vec<BinInfo>,
pub light_nodes: BinInfo,
}Expand description
Topology snapshot — GET /topology.
Bee returns the per-bin breakdown as 32 flat keys
(bin_0..bin_31); we collapse them into Topology::bins for
indexable access. The light-node bin sits beside the regular bins
at Topology::light_nodes.
Fields§
§base_addr: StringBase address (overlay).
population: i64Population (peers known across all bins).
connected: i64Currently connected peers.
timestamp: StringSnapshot timestamp (RFC 3339).
nn_low_watermark: i64Lower watermark for the nearest neighbour bin.
depth: u8Kademlia depth.
reachability: StringAggregate peer reachability state ("Public", "Private",
"Unknown", etc.). Empty on Bee versions that pre-date the
AutoNAT field.
network_availability: StringNetwork availability ("Available" / "Unavailable" /
empty on older Bee versions).
bins: Vec<BinInfo>32 per-bin entries indexed by bin number 0..=31. See
BinInfo for the per-bin shape.
light_nodes: BinInfoAggregated info for connected light nodes. Sits outside the regular bins because light nodes don’t get a Kademlia bin.