Skip to content

Commit 304be66

Browse files
committed
Allow access of inner stub
1 parent 7f6f351 commit 304be66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/src/lib.rs

+4
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,10 @@ impl<'a> ServiceGenerator<'a> {
747747
dispatch: new_client.dispatch,
748748
}
749749
}
750+
751+
#vis fn stub(&self) ->&impl ::tarpc::client::stub::Stub<Req = #request_ident, Resp = #response_ident> {
752+
&self.0
753+
}
750754
}
751755

752756
impl<Stub> ::core::convert::From<Stub> for #client_ident<Stub>

0 commit comments

Comments
 (0)