[−][src]Trait body_image_futio::SinkWrapper
Trait for generic construction of Sink
wrapper types.
Required methods
pub fn new(body: BodySink, tune: FutioTunables) -> Self
[src]
Wrap by consuming a BodySink
and FutioTunables
instances.
Note: FutioTunables
is Clone
(inexpensive), so that can be done
beforehand to preserve an owned copy.
pub fn into_inner(self) -> BodySink
[src]
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.
Implementors
impl<B> SinkWrapper<B> for DispatchBodySink<B> where
B: InputBuf,
[src]
B: InputBuf,
pub fn new(body: BodySink, tune: FutioTunables) -> Self
[src]
pub fn into_inner(self) -> BodySink
[src]
impl<B> SinkWrapper<B> for PermitBodySink<B> where
B: InputBuf,
[src]
B: InputBuf,
pub fn new(body: BodySink, tune: FutioTunables) -> Self
[src]
pub fn into_inner(self) -> BodySink
[src]
impl<B, BA> SinkWrapper<B> for AsyncBodySink<B, BA> where
B: InputBuf,
BA: BlockingArbiter + Default + Unpin,
[src]
B: InputBuf,
BA: BlockingArbiter + Default + Unpin,