Struct completion::io::Copy[][src]

pub struct Copy<'a, R: ?Sized, W: ?Sized> where
    R: AsyncRead,
    W: AsyncWrite
{ /* fields omitted */ }
This is supported on crate feature std only.

Future for copy.

Trait Implementations

impl<'a, R: ?Sized, W: ?Sized> CompletionFuture for Copy<'a, R, W> where
    R: 'a + AsyncRead,
    W: 'a + AsyncWrite
[src]

type Output = Result<u64>

The type of value produced on completion.

impl<'a, R: ?Sized, W: ?Sized> Future for Copy<'a, R, W> where
    R: 'a + AsyncRead,
    W: 'a + AsyncWrite,
    <R as AsyncReadWith<'a>>::ReadFuture: Future<Output = Result<()>>,
    <W as AsyncWriteWith<'a>>::WriteFuture: Future<Output = Result<u64>>, 
[src]

type Output = Result<u64>

The type of value produced on completion.

impl<'__pin, 'a, R: ?Sized, W: ?Sized> Unpin for Copy<'a, R, W> where
    __Origin<'__pin, 'a, R, W>: Unpin,
    R: AsyncRead,
    W: AsyncWrite
[src]

Auto Trait Implementations

impl<'a, R: ?Sized, W: ?Sized> RefUnwindSafe for Copy<'a, R, W> where
    R: RefUnwindSafe,
    W: RefUnwindSafe,
    <R as AsyncReadWith<'a>>::ReadFuture: RefUnwindSafe,
    <W as AsyncWriteWith<'a>>::WriteFuture: RefUnwindSafe

impl<'a, R: ?Sized, W: ?Sized> Send for Copy<'a, R, W> where
    R: Send,
    W: Send,
    <R as AsyncReadWith<'a>>::ReadFuture: Send,
    <W as AsyncWriteWith<'a>>::WriteFuture: Send

impl<'a, R: ?Sized, W: ?Sized> Sync for Copy<'a, R, W> where
    R: Sync,
    W: Sync,
    <R as AsyncReadWith<'a>>::ReadFuture: Sync,
    <W as AsyncWriteWith<'a>>::WriteFuture: Sync

impl<'a, R: ?Sized, W: ?Sized> UnwindSafe for Copy<'a, R, W> where
    R: RefUnwindSafe,
    W: RefUnwindSafe,
    <R as AsyncReadWith<'a>>::ReadFuture: UnwindSafe,
    <W as AsyncWriteWith<'a>>::WriteFuture: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CompletionFutureExt for T where
    T: CompletionFuture + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T where
    T: Future
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<F> IntoFuture for F where
    F: Future
[src]

type Output = <F as Future>::Output

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

type Future = F

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<F, T, E> TryFuture for F where
    F: Future<Output = Result<T, E>> + ?Sized
[src]

type Ok = T

The type of successful values yielded by this future

type Error = E

The type of failures yielded by this future

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.