Enum futures_util::future::future::shared::FutureOrOutput
source · enum FutureOrOutput<Fut: Future> {
Future(Fut),
Output(Fut::Output),
}
Variants§
Auto Trait Implementations§
impl<Fut> RefUnwindSafe for FutureOrOutput<Fut>where Fut: RefUnwindSafe, <Fut as Future>::Output: RefUnwindSafe,
impl<Fut> Send for FutureOrOutput<Fut>where Fut: Send, <Fut as Future>::Output: Send,
impl<Fut> Sync for FutureOrOutput<Fut>where Fut: Sync, <Fut as Future>::Output: Sync,
impl<Fut> Unpin for FutureOrOutput<Fut>where Fut: Unpin, <Fut as Future>::Output: Unpin,
impl<Fut> UnwindSafe for FutureOrOutput<Fut>where Fut: UnwindSafe, <Fut as Future>::Output: UnwindSafe,
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