Struct std::future::Ready 1.48.0[−][src]
#[must_use = "futures do nothing unless you `.await` or poll them"]pub struct Ready<T>(_);
Expand description
Creates a future that is immediately ready with a value.
This struct is created by ready(). See its
documentation for more.
Trait Implementations
impl<T> Unpin for Ready<T>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Ready<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Ready<T> where
T: Send,
T: Send,
impl<T> Sync for Ready<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for Ready<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<F> IntoFuture for F where
F: Future, [src]
impl<F> IntoFuture for F where
F: Future, [src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into #41263)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more