Struct futures::future::WeakShared[][src]

pub struct WeakShared<Fut>(_)
where
    Fut: Future
;

A weak reference to a Shared that can be upgraded much like an Arc.

Implementations

impl<Fut> WeakShared<Fut> where
    Fut: Future
[src]

pub fn upgrade(&self) -> Option<Shared<Fut>>[src]

Attempts to upgrade this WeakShared into a Shared.

Returns None if all clones of the Shared have been dropped or polled to completion.

Trait Implementations

impl<Fut> Debug for WeakShared<Fut> where
    Fut: Future
[src]

Auto Trait Implementations

impl<Fut> !RefUnwindSafe for WeakShared<Fut>

impl<Fut> Send for WeakShared<Fut> where
    Fut: Send,
    <Fut as Future>::Output: Send + Sync

impl<Fut> Sync for WeakShared<Fut> where
    Fut: Send,
    <Fut as Future>::Output: Send + Sync

impl<Fut> Unpin for WeakShared<Fut>

impl<Fut> !UnwindSafe for WeakShared<Fut>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.