[][src]Enum blocking_permit::DispatchRx

#[must_use = "futures do nothing unless awaited or polled"]pub enum DispatchRx<F, T> {
    Dispatch(Dispatched<T>),
    NotRegistered(F),
}

Value returned by dispatch_rx.

Variants

Dispatch(Dispatched<T>)
NotRegistered(F)

Implementations

impl<F, T> DispatchRx<F, T>[src]

pub fn unwrap(self) -> Dispatched<T>

Notable traits for Dispatched<T>

impl<T> Future for Dispatched<T> type Output = Result<T, Canceled>;
[src]

Unwrap to the contained Dispatched future.

Panics

Panics if NotRegistered.

Auto Trait Implementations

impl<F, T> !RefUnwindSafe for DispatchRx<F, T>[src]

impl<F, T> Send for DispatchRx<F, T> where
    F: Send,
    T: Send
[src]

impl<F, T> Sync for DispatchRx<F, T> where
    F: Sync,
    T: Send
[src]

impl<F, T> Unpin for DispatchRx<F, T> where
    F: Unpin
[src]

impl<F, T> !UnwindSafe for DispatchRx<F, T>[src]

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.