struct Copy<'a, R: ?Sized, W: ?Sized> {
reader: &'a mut R,
writer: &'a mut W,
buf: CopyBuffer,
}
Expand description
A future that asynchronously copies the entire contents of a reader into a writer.
Fields§
§reader: &'a mut R
§writer: &'a mut W
§buf: CopyBuffer
Trait Implementations§
Auto Trait Implementations§
impl<'a, R, W> Freeze for Copy<'a, R, W>
impl<'a, R, W> RefUnwindSafe for Copy<'a, R, W>
impl<'a, R, W> Send for Copy<'a, R, W>
impl<'a, R, W> Sync for Copy<'a, R, W>
impl<'a, R, W> Unpin for Copy<'a, R, W>
impl<'a, R, W> !UnwindSafe for Copy<'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,
§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