pub struct Copy<'a, R, W>{ /* private fields */ }
Available on crate feature
std
only.Expand description
Future for copy
.
Trait Implementations§
Source§impl<'a, R, W> CompletionFuture for Copy<'a, R, W>
impl<'a, R, W> CompletionFuture for Copy<'a, R, W>
Source§impl<'a, R, W> Future for Copy<'a, R, W>where
R: 'a + ?Sized + AsyncRead,
W: 'a + ?Sized + AsyncWrite,
<R as AsyncReadWith<'a>>::ReadFuture: Future<Output = Result<()>>,
<W as AsyncWriteWith<'a>>::WriteFuture: Future<Output = Result<u64>>,
impl<'a, R, W> Future for Copy<'a, R, W>where
R: 'a + ?Sized + AsyncRead,
W: 'a + ?Sized + AsyncWrite,
<R as AsyncReadWith<'a>>::ReadFuture: Future<Output = Result<()>>,
<W as AsyncWriteWith<'a>>::WriteFuture: Future<Output = Result<u64>>,
impl<'__pin, 'a, R, W> Unpin for Copy<'a, R, W>where
PinnedFieldsOf<__Origin<'__pin, 'a, R, W>>: Unpin,
R: AsyncRead + ?Sized,
W: AsyncWrite + ?Sized,
Auto Trait Implementations§
impl<'a, R, W> Freeze for Copy<'a, R, W>where
<R as AsyncReadWith<'a>>::ReadFuture: Freeze,
<W as AsyncWriteWith<'a>>::WriteFuture: Freeze,
R: ?Sized,
W: ?Sized,
impl<'a, R, W> RefUnwindSafe for Copy<'a, R, W>where
<R as AsyncReadWith<'a>>::ReadFuture: RefUnwindSafe,
<W as AsyncWriteWith<'a>>::WriteFuture: RefUnwindSafe,
R: RefUnwindSafe + ?Sized,
W: RefUnwindSafe + ?Sized,
impl<'a, R, W> Send for Copy<'a, R, W>where
<R as AsyncReadWith<'a>>::ReadFuture: Send,
R: Send + ?Sized,
W: Send + ?Sized,
<W as AsyncWriteWith<'a>>::WriteFuture: Send,
impl<'a, R, W> Sync for Copy<'a, R, W>where
<R as AsyncReadWith<'a>>::ReadFuture: Sync,
R: Sync + ?Sized,
W: Sync + ?Sized,
<W as AsyncWriteWith<'a>>::WriteFuture: Sync,
impl<'a, R, W> UnwindSafe for Copy<'a, R, W>where
<R as AsyncReadWith<'a>>::ReadFuture: UnwindSafe,
R: RefUnwindSafe + ?Sized,
W: RefUnwindSafe + ?Sized,
<W as AsyncWriteWith<'a>>::WriteFuture: UnwindSafe,
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<T> CompletionFutureExt for Twhere
T: CompletionFuture + ?Sized,
impl<T> CompletionFutureExt for Twhere
T: CompletionFuture + ?Sized,
Source§fn must_complete(self) -> MustComplete<Self>where
Self: Sized,
fn must_complete(self) -> MustComplete<Self>where
Self: Sized,
Make sure that the future will complete. Any requests to cancel the future through
poll_cancel
will be ignored.Source§fn now_or_never(self) -> NowOrNever<Self> ⓘwhere
Self: Sized,
fn now_or_never(self) -> NowOrNever<Self> ⓘwhere
Self: Sized,
Get the future’s output if it’s ready, or cancel it if it’s not. Read more
Source§fn catch_unwind(self) -> CatchUnwind<Self> ⓘwhere
Self: Sized + UnwindSafe,
fn catch_unwind(self) -> CatchUnwind<Self> ⓘwhere
Self: Sized + UnwindSafe,
Available on crate feature
std
only.Catch panics in the future. Read more
Source§fn boxed<'a>(self) -> BoxCompletionFuture<'a, Self::Output>
fn boxed<'a>(self) -> BoxCompletionFuture<'a, Self::Output>
Available on crate feature
alloc
only.Box the future, erasing its type. Read more
Source§fn boxed_local<'a>(self) -> LocalBoxCompletionFuture<'a, Self::Output>where
Self: Sized + 'a,
fn boxed_local<'a>(self) -> LocalBoxCompletionFuture<'a, Self::Output>where
Self: Sized + 'a,
Available on crate feature
alloc
only.Box the future locally, erasing its type. Read more
Source§impl<T> FutureExt for Twhere
T: Future,
impl<T> FutureExt for Twhere
T: Future,
Source§fn into_completion(self) -> Adapter<Self> ⓘ
fn into_completion(self) -> Adapter<Self> ⓘ
Convert this future into a
CompletionFuture
. Read moreSource§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