[][src]Struct reducer::AsyncDispatcher

pub struct AsyncDispatcher<T> { /* fields omitted */ }

A handle that allows dispatching actions on a spawned Dispatcher (requires async).

This type is a just lightweight handle that may be cloned and sent to other threads.

Trait Implementations

impl<T: Clone> Clone for AsyncDispatcher<T>[src]

impl<T: Copy> Copy for AsyncDispatcher<T>[src]

impl<T: Debug> Debug for AsyncDispatcher<T>[src]

impl<T: Default> Default for AsyncDispatcher<T>[src]

impl<T> Deref for AsyncDispatcher<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for AsyncDispatcher<T>[src]

impl<A, T> Dispatcher<A> for AsyncDispatcher<T> where
    T: Sink<A> + Unpin
[src]

type Output = Result<(), T::Error>

Either confirmation that action has been dispatched through the sink or the reason why not.

fn dispatch(&mut self, action: A) -> Self::Output[src]

Sends an action through the sink.

Once this call returns, the action may or may not have taken effect, but it's guaranteed to eventually do, unless the sink is closed in between.

impl<T: Eq> Eq for AsyncDispatcher<T>[src]

impl<T: Hash> Hash for AsyncDispatcher<T>[src]

impl<T: PartialEq> PartialEq<AsyncDispatcher<T>> for AsyncDispatcher<T>[src]

impl<T> PinnedDrop for AsyncDispatcher<T>[src]

impl<A, T> Sink<A> for AsyncDispatcher<T> where
    T: Sink<A>, 
[src]

type Error = T::Error

The type of value produced by the sink when an error occurs.

impl<T> StructuralEq for AsyncDispatcher<T>[src]

impl<T> StructuralPartialEq for AsyncDispatcher<T>[src]

impl<'pin, T> Unpin for AsyncDispatcher<T> where
    __AsyncDispatcher<'pin, T>: Unpin
[src]

impl<T> UnsafeUnpin for AsyncDispatcher<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for AsyncDispatcher<T> where
    T: RefUnwindSafe

impl<T> Send for AsyncDispatcher<T> where
    T: Send

impl<T> Sync for AsyncDispatcher<T> where
    T: Sync

impl<T> UnwindSafe for AsyncDispatcher<T> where
    T: UnwindSafe

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, Item> SinkExt<Item> for T where
    T: Sink<Item> + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.