diff options
| author | tv <tv@krebsco.de> | 2026-10-27 04:08:55 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-27 04:08:55 +0100 |
| commit | e5f48c2bb24690225843287ac2628a78760e579f (patch) | |
| tree | 5745cb9763fb1f28dad4bb511fdb0a4b09173f4a /src/transport/mod.rs | |
| parent | d2e854e2ecff4a7962fc3150106942c3de3360a4 (diff) | |
build topology per transport
Diffstat (limited to 'src/transport/mod.rs')
| -rw-r--r-- | src/transport/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs index 6ae3814..3f77306 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -555,6 +555,14 @@ pub(crate) trait Transport: Send + Sync { vec![peer.to_owned()] } + /// The transports this node is on, as the schemes of their addresses + /// (`swarm::topology`), whether or not it has an address on each (one that only + /// connects out has none). By default the empty scheme, for a transport whose + /// identities are addresses. + fn transports(&self) -> Vec<String> { + vec![String::new()] + } + /// Seeds the transport found by itself since last asked (libp2p: nodes on the LAN), /// for a node that is joining. By default none. fn discovered_seeds(&self) -> Vec<String> { |
