pub struct AsyncTry<'a, G: AsyncTryGetFut<'a>> { /* private fields */ }Expand description
Try to encapsulate an async borrowed future along with it’s owner
Implementations§
Trait Implementations§
Source§impl<'a, G: AsyncTryGetFut<'a>> Future for AsyncTry<'a, G>
impl<'a, G: AsyncTryGetFut<'a>> Future for AsyncTry<'a, G>
Source§type Output = Result<(Pin<Box<dyn Future<Output = <G as AsyncTryGetFut<'a>>::Output> + 'a>>, <G as AsyncTryGetFut<'a>>::Aux), (<G as AsyncTryGetFut<'a>>::Input, <G as AsyncTryGetFut<'a>>::Error)>
type Output = Result<(Pin<Box<dyn Future<Output = <G as AsyncTryGetFut<'a>>::Output> + 'a>>, <G as AsyncTryGetFut<'a>>::Aux), (<G as AsyncTryGetFut<'a>>::Input, <G as AsyncTryGetFut<'a>>::Error)>
The type of value produced on completion.
impl<'__pin, 'a, G: AsyncTryGetFut<'a>> Unpin for AsyncTry<'a, G>where
PinnedFieldsOf<__Origin<'__pin, 'a, G>>: Unpin,
Auto Trait Implementations§
impl<'a, G> Freeze for AsyncTry<'a, G>where
<G as AsyncTryGetFut<'a>>::Input: Freeze,
G: Freeze,
<G as AsyncTryGetFut<'a>>::Aux: Freeze,
<G as AsyncTryGetFut<'a>>::Error: Freeze,
impl<'a, G> !RefUnwindSafe for AsyncTry<'a, G>
impl<'a, G> !Send for AsyncTry<'a, G>
impl<'a, G> !Sync for AsyncTry<'a, G>
impl<'a, G> !UnwindSafe for AsyncTry<'a, G>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more