summaryrefslogtreecommitdiffstats
path: root/src/transport/mod.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-28 06:01:40 +0100
committertv <tv@krebsco.de>2026-10-28 06:01:40 +0100
commitfe4c11424d0ad8b155fe1b45c95b5b472a536b8e (patch)
tree5b6e778e9ab7ad407f6529d9adbe6b28cdbaea7a /src/transport/mod.rs
parentde75b63c44235fab3547ac2e060e610bff94646a (diff)
add location info to paths
Diffstat (limited to 'src/transport/mod.rs')
-rw-r--r--src/transport/mod.rs7
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> {