Home
last modified time | relevance | path

Searched refs:_rpc (Results 1 – 6 of 6) sorted by relevance

/external/grpc-grpc/src/python/grpcio_testing/grpc_testing/_server/
D_servicer_context.py22 self._rpc = rpc
27 return self._rpc.is_active()
30 if self._rpc.is_active():
39 self._rpc.application_cancel()
42 return self._rpc.add_callback(callback)
45 return self._rpc.invocation_metadata()
60 initial_metadata_sent = self._rpc.send_initial_metadata(
67 self._rpc.set_trailing_metadata(
74 self._rpc.set_code(code)
77 self._rpc.set_details(details)
D_service.py21 self._rpc = rpc
30 self._rpc.add_rpc_error(rpc_error)
D_server.py20 from grpc_testing._server import _rpc
73 rpc = _rpc.Rpc(handler, invocation_metadata)
/external/pigweed/pw_rpc/py/pw_rpc/
Dcallback_client.py98 self._rpc = PendingRpc(channel, method.service, method)
103 return self._rpc.channel
107 return self._rpc.method
111 return self._rpc.service
122 self._rpcs.send_request(self._rpc,
127 return _AsyncCall(self._rpcs, self._rpc)
180 self._rpc = rpc
184 return self._rpcs.send_cancel(self._rpc)
212 …self._method_client._rpcs.send_cancel(self._method_client._rpc) # pylint: disable=protected-access
240 … raise RpcTimeout(self._method_client._rpc, timeout_s) # pylint: disable=protected-access
[all …]
/external/pigweed/pw_rpc/py/tests/
Dcallback_client_test.py56 def _rpc(method_stub): function
214 mock.call(_rpc(self._service.SomeUnary),
216 mock.call(_rpc(self._service.SomeUnary), Status.ABORTED)
318 rpc = _rpc(self._service.SomeServerStreaming)
338 _rpc(stub), stub.method.response_type(payload='!!!'))
354 mock.call(_rpc(stub), stub.method.response_type(payload='!!!')),
355 mock.call(_rpc(stub), Status.OK),
/external/pigweed/pw_rpc/
DREADME.md1 # pw\_rpc: Remote procedure calls