Function try_make

Source
pub fn try_make<G>(
    val: G::Input,
    getter: G,
) -> Result<(Pin<Box<impl Future<Output = G::Output>>>, G::Aux), (G::Input, G::Error)>
where G: TryGetFut,
Expand description

Try to encapsulate a borrowed future along with it’s owner