Struct completion_io::DefaultWriteVectored[][src]

pub struct DefaultWriteVectored<'a, T: AsyncWriteWith<'a>> { /* fields omitted */ }

A default implementation of WriteVectoredFuture for types that don't have efficient vectored writes.

This will forward to write with the first nonempty buffer provided, or an empty one if none exists.

Implementations

impl<'a, T: AsyncWriteWith<'a>> DefaultWriteVectored<'a, T>[src]

pub fn new(writer: &'a mut T, bufs: &'a [IoSlice<'a>]) -> Self[src]

Create a new DefaultWriteVectored future.

Trait Implementations

impl<'a, T: AsyncWriteWith<'a>> CompletionFuture for DefaultWriteVectored<'a, T>[src]

type Output = Result<usize>

The type of value produced on completion.

impl<'a, T: Debug + AsyncWriteWith<'a>> Debug for DefaultWriteVectored<'a, T> where
    T::WriteFuture: Debug
[src]

impl<'a, T: AsyncWriteWith<'a>> Future for DefaultWriteVectored<'a, T> where
    <T as AsyncWriteWith<'a>>::WriteFuture: Future<Output = Result<usize>>, 
[src]

type Output = Result<usize>

The type of value produced on completion.

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for DefaultWriteVectored<'a, T> where
    <T as AsyncWriteWith<'a>>::WriteFuture: RefUnwindSafe

impl<'a, T> Send for DefaultWriteVectored<'a, T> where
    <T as AsyncWriteWith<'a>>::WriteFuture: Send

impl<'a, T> Sync for DefaultWriteVectored<'a, T> where
    <T as AsyncWriteWith<'a>>::WriteFuture: Sync

impl<'a, T> Unpin for DefaultWriteVectored<'a, T> where
    <T as AsyncWriteWith<'a>>::WriteFuture: Unpin

impl<'a, T> UnwindSafe for DefaultWriteVectored<'a, T> where
    <T 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> From<T> for T[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<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.