MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / RpcCall

Interface RpcCall

ra-rpc/src/lib.rs:62–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62pub trait RpcCall<State>: Sized {
63 type PrpcService: PrpcService + From<Self> + Send + 'static;
64
65 fn construct(context: CallContext<'_, State>) -> Result<Self>;
66
67 async fn call(
68 self,
69 method: String,
70 payload: Vec<u8>,
71 is_json: bool,
72 is_query: bool,
73 ) -> (u16, Vec<u8>) {
74 dispatch_prpc(
75 method,
76 payload,
77 is_json,
78 is_query,
79 <Self::PrpcService as From<Self>>::from(self),
80 )
81 .await
82 }
83}
84
85async fn dispatch_prpc(
86 path: String,

Callers 3

checkArrayTypesFunction · 0.45
checkArrayTypesFunction · 0.45
handle_prpc_implFunction · 0.45

Implementers 10

onboard_service.rskms/src/onboard_service.rs
main_service.rskms/src/main_service.rs
host_api_service.rsvmm/src/host_api_service.rs
guest_api_service.rsvmm/src/guest_api_service.rs
main_service.rsvmm/src/main_service.rs
guest_api_service.rsguest-agent/src/guest_api_service.rs
rpc_service.rsguest-agent/src/rpc_service.rs
debug_service.rsgateway/src/debug_service.rs
admin_service.rsgateway/src/admin_service.rs
main_service.rsgateway/src/main_service.rs

Calls

no outgoing calls

Tested by

no test coverage detected