[][src]Trait body_image_futio::SinkWrapper

pub trait SinkWrapper<T>: Sink<T> {
    fn new(body: BodySink, tune: FutioTunables) -> Self;
fn into_inner(self) -> BodySink; }

Trait for generic construction of Sink wrapper types.

Required methods

fn new(body: BodySink, tune: FutioTunables) -> Self

Wrap by consuming a BodySink and FutioTunables instances.

Note: FutioTunables is Clone (inexpensive), so that can be done beforehand to preserve an owned copy.

fn into_inner(self) -> BodySink

Unwrap and return the BodySink.

Panics

May panic if called after a Result::Err is returned from any Sink method or before Sink::poll_flush or Sink::poll_close is called.

Loading content...

Implementors

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

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

impl<B, BA> SinkWrapper<B> for AsyncBodySink<B, BA> where
    B: InputBuf,
    BA: BlockingArbiter + Default + Unpin
[src]

Loading content...