pub async fn invoke_special_method<M: Method>(
ctx: Arc<dyn Context>,
obj: Arc<dyn Object>,
method: Box<M>,
) -> Result<Box<M::Output>, InvokeError>
Expand description
Invoke the given method
on obj
within ctx
, and return its
actual result type.
Unlike invoke_rpc_method
, this method does not return a type-erased result,
and does not require that the result can be serialized as an RPC object.
Differs from using DispatchTable::invoke_special()
in that it drops its lock
on the dispatch table before invoking the method.