Skip to main content

with_api_request

Function with_api_request 

Source
pub async fn with_api_request<F, Fut>(
    _conn_id: u64,
    _serial_no: u32,
    proto_id: u32,
    future: F,
) -> Option<Vec<u8>>
where F: FnOnce() -> Fut, Fut: Future<Output = Option<Vec<u8>>>,
Expand description

Run a public API handler inside the current request/reply delay context.

C++ starts recording at APIServerCS_Conn.cpp:279 (ReqReply_APIReqBegin) and records successful responses in APIServer_Inner_API.h via ReqReply_APIReqEnd(..., bSuc).