fn callDetails
The typed error detail of the call (empty type name when it succeeded or failed without one).
Example:
use std.rpc { callDetails }
service S {
@public rpc ping() -> str
}
impl S {
rpc ping() { "pong" }
}
fn main() io, net {
print("[{callDetails(S, "ping", b"").type}]")
}Вывод
[]
@intrinsic("rpc.callDetails") pub(api) fn callDetails(S: type, method: str, request: bytes) -> CallDetails netС версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
S | type |
method | str |
request | bytes |
Возвращает
Эффекты
net
Определено в: std/rpc/rpc.oxl:255