Struct futures_util::future::Pending [−][src]
#[must_use = "futures do nothing unless you `.await` or poll them"]pub struct Pending<T> { /* fields omitted */ }
Expand description
Future for the pending()
function.
Trait Implementations
impl<T> FusedFuture for Pending<T>
[src]
impl<T> FusedFuture for Pending<T>
[src]fn is_terminated(&self) -> bool
[src]
fn is_terminated(&self) -> bool
[src]Returns true
if the underlying future should no longer be polled.
impl<T> Unpin for Pending<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Pending<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Pending<T> where
T: Send,
T: Send,
impl<T> Sync for Pending<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for Pending<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]type Output = <F as Future>::Output
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]
pub fn into_future(self) -> <F as IntoFuture>::Future
[src]🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The 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
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more