poll_for_io_request!() { /* proc-macro */ }
Expand description
Generates code for Future::poll
.
§Must have above
-
this
withio_request_data
(Option<IoRequestData>
) fields; -
cx
withwaker
method that returns (Waker
) which contains*const orengine::runtime::Task
indata
; -
declared variable
ret
(usize
) which can be used inret_statement
.
§Arguments
do_request
- the request coderet_statement
- the return statement which can useret
(usize
) variable.