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

Method call

ra-rpc/src/lib.rs:67–82  ·  view source on GitHub ↗
(
        self,
        method: String,
        payload: Vec<u8>,
        is_json: bool,
        is_query: bool,
    )

Source from the content-addressed store, hash-verified

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(

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 1

dispatch_prpcFunction · 0.85

Tested by 1

handle_prpc_implFunction · 0.36