pub enum Ready<T, E> {
Ok(T),
Err(E),
Done(Sealed),
}
Expand description
A future representing a value that is immediately ready.
Created by the result
function.
Variants§
Trait Implementations§
impl<T, E> Unpin for Ready<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for Ready<T, E>
impl<T, E> RefUnwindSafe for Ready<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Send for Ready<T, E>
impl<T, E> Sync for Ready<T, E>
impl<T, E> UnwindSafe for Ready<T, E>where
T: UnwindSafe,
E: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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