pub struct WriteBuf<'a, W, B> {
writer: &'a mut W,
buf: &'a mut B,
_pin: PhantomPinned,
}
Expand description
A future to write some of the buffer to an AsyncWrite
.
Fields§
§writer: &'a mut W
§buf: &'a mut B
§_pin: PhantomPinned
Trait Implementations§
impl<'__pin, 'a, W, B> Unpin for WriteBuf<'a, W, B>where
PinnedFieldsOf<__Origin<'__pin, 'a, W, B>>: Unpin,
Auto Trait Implementations§
impl<'a, W, B> Freeze for WriteBuf<'a, W, B>
impl<'a, W, B> RefUnwindSafe for WriteBuf<'a, W, B>where
W: RefUnwindSafe,
B: RefUnwindSafe,
impl<'a, W, B> Send for WriteBuf<'a, W, B>
impl<'a, W, B> Sync for WriteBuf<'a, W, B>
impl<'a, W, B> !UnwindSafe for WriteBuf<'a, W, B>
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
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more