Enum fastsink::Action[][src]

pub enum Action<A> {
    Send(A),
    Flush,
    Close,
}

The command given to the closure so that it can perform appropriate action.

Presumably the closure encapsulates a resource to perform I/O. The commands correspond to methods of the Sink trait and provide the closure with sufficient information to know what kind of action to perform with it.

Variants

Send(A)

Send the given value. Corresponds to Sink::start_send.

Flush

Flush the resource. Corresponds to Sink::poll_flush.

Close

Close the resource. Corresponds to Sink::poll_close.

Trait Implementations

impl<A: Clone> Clone for Action<A>[src]

impl<A: Debug> Debug for Action<A>[src]

impl<A: Eq> Eq for Action<A>[src]

impl<A: PartialEq> PartialEq<Action<A>> for Action<A>[src]

impl<A> StructuralEq for Action<A>[src]

impl<A> StructuralPartialEq for Action<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for Action<A> where
    A: RefUnwindSafe

impl<A> Send for Action<A> where
    A: Send

impl<A> Sync for Action<A> where
    A: Sync

impl<A> Unpin for Action<A> where
    A: Unpin

impl<A> UnwindSafe for Action<A> where
    A: 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> 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.