OxL Справочник OxL
РусскийEnglish

fn callDetails

The typed error detail of the call (empty type name when it succeeded or failed without one).

Example:

oxl✓ проверяется в CI
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

Параметры

ИмяТип
Stype
methodstr
requestbytes

Возвращает

CallDetails

Эффекты

net

Определено в: std/rpc/rpc.oxl:255

См. также