We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22ddcd3 commit 68bf17dCopy full SHA for 68bf17d
tonic/src/extensions.rs
@@ -1,14 +1,14 @@
1
/// A gRPC Method info extension.
2
#[derive(Debug, Clone)]
3
-pub struct GrpcMethod {
4
- service: &'static str,
5
- method: &'static str,
+pub struct GrpcMethod<'a> {
+ service: &'a str,
+ method: &'a str,
6
}
7
8
-impl GrpcMethod {
+impl<'a> GrpcMethod<'a> {
9
/// Create a new `GrpcMethod` extension.
10
#[doc(hidden)]
11
- pub fn new(service: &'static str, method: &'static str) -> Self {
+ pub fn new(service: &'a str, method: &'a str) -> Self {
12
Self { service, method }
13
14
0 commit comments