aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-02-16 13:00:26 +0100
committerAlex Auvolat <alex@adnab.me>2022-02-16 13:00:26 +0100
commitdc0b5c0305284a1f33417e184c1e4d0ef6e7c032 (patch)
tree7a85ea2b3a3b56559ffe33f53f982f6173d8b247 /src
parentc20d36892bcccae580603249706ba60d54a46d7f (diff)
downloadnetapp-dc0b5c0305284a1f33417e184c1e4d0ef6e7c032.tar.gz
netapp-dc0b5c0305284a1f33417e184c1e4d0ef6e7c032.zip
Add method to know endpoint path
Diffstat (limited to 'src')
-rw-r--r--src/endpoint.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/endpoint.rs b/src/endpoint.rs
index f30b25e..760bf32 100644
--- a/src/endpoint.rs
+++ b/src/endpoint.rs
@@ -75,6 +75,11 @@ where
}
}
+ /// Get the path of this endpoint
+ pub fn path(&self) -> &str {
+ &self.path
+ }
+
/// Set the object that is responsible of handling requests to
/// this endpoint on the local node.
pub fn set_handler(&self, h: Arc<H>) {