diff options
| author | tv <tv@krebsco.de> | 2026-10-28 06:01:40 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-28 06:01:40 +0100 |
| commit | 70fcc1ffba9a66c678e9e71b420521b1dd850eb9 (patch) | |
| tree | 5874e234b37a6d0512d56b05d12a39c6666e7e17 /src/transport/mod.rs | |
| parent | b165fb87b3c36d7311c78552732a2f1713d342f1 (diff) | |
add location info to paths
Diffstat (limited to 'src/transport/mod.rs')
| -rw-r--r-- | src/transport/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/transport/mod.rs b/src/transport/mod.rs index 7c31dc6..c70d27f 100644 --- a/src/transport/mod.rs +++ b/src/transport/mod.rs @@ -669,6 +669,13 @@ pub(crate) trait Transport: Send + Sync { None } + /// Where messages to `target` (a transport identity) go now: the remote address of + /// the connection in use, say. By default nowhere but `target` itself (Mycelium). + fn location(&self, target: &str) -> Option<String> { + let _ = target; + None + } + /// How this node is connected to `target` (a transport identity), if it is. By /// default not at all, for a transport without connections (Mycelium). fn connection(&self, target: &str) -> Option<Connection> { |
