[][src]Struct body_image_futio::DispatchBodySink

#[must_use = "sinks do nothing unless polled"]
pub struct DispatchBodySink<B> where
    B: InputBuf
{ /* fields omitted */ }

Extends AsyncBodySink by further dispatching any blocking file write operations to a DispatchPool registered with the current thread.

The implementation will panic if a DispatchPool is not registered. Note that any risk of out-of-order writes (for example, via 2+ dispatch threads) is avoided, because each instance will have, at most, 1 pending dispatch write operation Future, that it drives to completion before accepting further input buffers. Also the underlying BodySink is owned for the life of the instance and is not a cloneable handle.

Trait Implementations

impl<B: Debug> Debug for DispatchBodySink<B> where
    B: InputBuf
[src]

impl<B> Sink<B> for DispatchBodySink<B> where
    B: InputBuf
[src]

type Error = FutioError

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

impl<B> SinkWrapper<B> for DispatchBodySink<B> where
    B: InputBuf
[src]

Auto Trait Implementations

impl<B> !RefUnwindSafe for DispatchBodySink<B>

impl<B> Send for DispatchBodySink<B>

impl<B> Sync for DispatchBodySink<B>

impl<B> Unpin for DispatchBodySink<B>

impl<B> !UnwindSafe for DispatchBodySink<B>

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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,