struct CopyBuf<'a, R: ?Sized, W: ?Sized> {
reader: &'a mut R,
writer: &'a mut W,
amt: u64,
}
Expand description
A future that asynchronously copies the entire contents of a reader into a writer.
This struct is generally created by calling copy_buf
. Please
see the documentation of copy_buf()
for more details.
Fields§
§reader: &'a mut R
§writer: &'a mut W
§amt: u64
Trait Implementations§
Auto Trait Implementations§
impl<'a, R, W> Freeze for CopyBuf<'a, R, W>
impl<'a, R, W> RefUnwindSafe for CopyBuf<'a, R, W>
impl<'a, R, W> Send for CopyBuf<'a, R, W>
impl<'a, R, W> Sync for CopyBuf<'a, R, W>
impl<'a, R, W> Unpin for CopyBuf<'a, R, W>
impl<'a, R, W> !UnwindSafe for CopyBuf<'a, R, 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,
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