Expand description
The reply side of a handler: the probe that sends every error side to the error handlers
whatever the return type is spelled as, and the + use<> rewrite on streaming returns
(transports DESIGN §2.3).
Functions§
- reply_
call - The expression turning the handler’s output
outintoResult<T::Reply, BoxError>: - rewrite_
opaque_ returns - Appends
+ use<>to every opaque type insig’s return position, inside anasync fn’s return type included, so a reply outlives the call: on edition 2024 an opaque return type captures&self’s lifetime whatever the hidden type borrows. - rewrite_
opaque_ returns_ in rewrite_opaque_returnsfor a handler of a generic controller, whose impl’s type and const parameters are in scope of every opaque return type and so must be named in itsuse<..>: appends+ use<T, N, ..>listing them.#[handlers]calls it before the transport attribute expands, which then finds ause<..>and leaves the type as written; the transport attribute sees the method alone and cannot learn the impl’s parameters.