OxL Reference

fn callDetails

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

Example:

oxl✓ checked in 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}]")
}
Output
[]
@intrinsic("rpc.callDetails") pub(api) fn callDetails(S: type, method: str, request: bytes) -> CallDetails  net

Since. 1.0.0-beta

Parameters

NameType
Stype
methodstr
requestbytes

Returns

CallDetails

Effects

net

Defined in: std/rpc/rpc.oxl:255

See also