Function resp_try

Source
pub async fn resp_try<Fut, T, E>(future: Fut) -> RespResult<T, E>
where Fut: Future, Fut::Output: IntoRespResult<T, E>, E: RespError,
Expand description

receive a Future applying it immediately, then convent the result into RespResult