Function dptree::from_fn_with_description
source · [−]pub fn from_fn_with_description<'a, F, Fut, Input, Output, Descr>(
description: Descr,
f: F
) -> Handler<'a, Input, Output, Descr> where
F: Fn(Input, Cont<'a, Input, Output>) -> Fut,
F: Send + Sync + 'a,
Fut: Future<Output = ControlFlow<Output, Input>> + Send + 'a,
Expand description
from_fn
with a custom description.