pub struct Write<'a, W: ?Sized> {
writer: &'a mut W,
buf: &'a [u8],
_pin: PhantomPinned,
}
Expand description
A future to write some of the buffer to an AsyncWrite
.
Fields§
§writer: &'a mut W
§buf: &'a [u8]
§_pin: PhantomPinned
Trait Implementations§
impl<'__pin, 'a, W: ?Sized> Unpin for Write<'a, W>where
PinnedFieldsOf<__Origin<'__pin, 'a, W>>: Unpin,
Auto Trait Implementations§
impl<'a, W> Freeze for Write<'a, W>where
W: ?Sized,
impl<'a, W> RefUnwindSafe for Write<'a, W>where
W: RefUnwindSafe + ?Sized,
impl<'a, W> Send for Write<'a, W>
impl<'a, W> Sync for Write<'a, W>
impl<'a, W> !UnwindSafe for Write<'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
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
§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