forked from lx/netapp
Add method to know endpoint path
This commit is contained in:
parent
c20d36892b
commit
dc0b5c0305
3 changed files with 7 additions and 2 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -398,7 +398,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "netapp"
|
name = "netapp"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arc-swap",
|
"arc-swap",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "netapp"
|
name = "netapp"
|
||||||
version = "0.3.0"
|
version = "0.3.1"
|
||||||
authors = ["Alex Auvolat <alex@adnab.me>"]
|
authors = ["Alex Auvolat <alex@adnab.me>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
license-file = "LICENSE"
|
license-file = "LICENSE"
|
||||||
|
|
|
@ -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
|
/// Set the object that is responsible of handling requests to
|
||||||
/// this endpoint on the local node.
|
/// this endpoint on the local node.
|
||||||
pub fn set_handler(&self, h: Arc<H>) {
|
pub fn set_handler(&self, h: Arc<H>) {
|
||||||
|
|
Loading…
Reference in a new issue