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
.
Trait Implementations§
Source§impl<W> AsyncWriteBody<W> for BoxAsyncWriteBody<'_, W>where
W: Send,
impl<W> AsyncWriteBody<W> for BoxAsyncWriteBody<'_, W>where
W: Send,
Auto Trait Implementations§
impl<'a, W> Freeze for BoxAsyncWriteBody<'a, W>
impl<'a, W> !RefUnwindSafe for BoxAsyncWriteBody<'a, W>
impl<'a, W> Send for BoxAsyncWriteBody<'a, W>
impl<'a, W> !Sync for BoxAsyncWriteBody<'a, W>
impl<'a, W> Unpin for BoxAsyncWriteBody<'a, W>
impl<'a, W> !UnwindSafe for BoxAsyncWriteBody<'a, W>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more