pub struct BoxAsyncWriteBody<'a, W> { /* private fields */ }Expand description
A boxed AsyncWriteBody trait object.
Implementations§
Source§impl<'a, W> BoxAsyncWriteBody<'a, W>
impl<'a, W> BoxAsyncWriteBody<'a, W>
Sourcepub fn new<T>(v: T) -> Selfwhere
T: AsyncWriteBody<W> + Send + 'a,
pub fn new<T>(v: T) -> Selfwhere
T: AsyncWriteBody<W> + Send + 'a,
Creates a new BoxAsyncWriteBody.