From fe4c11424d0ad8b155fe1b45c95b5b472a536b8e Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 28 Oct 2026 06:01:40 +0100 Subject: add location info to paths --- src/transport/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/transport/mod.rs') 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 { + 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 { -- cgit v1.3.1