pub enum DoneFuture {
Ready,
Wait(Pin<Box<dyn Future<Output = ()> + Send + 'static>>),
Never,
}Expand description
Done() 的异步版 Future。
Variants§
Trait Implementations§
Source§impl Future for DoneFuture
impl Future for DoneFuture
Auto Trait Implementations§
impl Freeze for DoneFuture
impl !RefUnwindSafe for DoneFuture
impl Send for DoneFuture
impl !Sync for DoneFuture
impl Unpin for DoneFuture
impl !UnwindSafe for DoneFuture
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