Function invoke_rpc_method

Source
pub fn invoke_rpc_method(
    ctx: Arc<dyn Context>,
    obj_id: &ObjectId,
    obj: Arc<dyn Object>,
    method: Box<dyn DynMethod>,
    sink: BoxedUpdateSink,
) -> Result<RpcResultFuture, InvokeError>
Expand description

Try to find an appropriate function for calling a given RPC method on a given RPC-visible object.

On success, return a Future.

Differs from using DispatchTable::invoke() in that it drops its lock on the dispatch table before invoking the method.