fn oxl_rpc_ctx
The ctx of the current request (bound to the name ctx inside handlers by the compiler).
Example:
fn main() io {
let c = oxl_rpc_ctx()
print("[{c.idempotencyKey}] {c.caller.isUser(none)}")
}Вывод
[] false
pub(api) fn oxl_rpc_ctx() -> CtxС версии. 1.0.0-beta
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/rpc.oxl:400