Skip to content

Commit

Permalink
Allow access of inner stub
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneMurphy2 committed Apr 25, 2024
1 parent 7f6f351 commit 304be66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,10 @@ impl<'a> ServiceGenerator<'a> {
dispatch: new_client.dispatch,
}
}

#vis fn stub(&self) ->&impl ::tarpc::client::stub::Stub<Req = #request_ident, Resp = #response_ident> {
&self.0
}
}

impl<Stub> ::core::convert::From<Stub> for #client_ident<Stub>
Expand Down

0 comments on commit 304be66

Please sign in to comment.