AsyncWriteVec

Trait AsyncWriteVec 

Source
pub trait AsyncWriteVec {
    // Required method
    fn poll_write_vec<B>(
        self: Pin<&mut Self>,
        _cx: &mut Context<'_>,
        _buf: &mut B,
    ) -> Poll<Result<usize, Error>>
       where B: Buf;

    // Provided methods
    fn write_vec<'a, B>(&'a mut self, src: &'a mut B) -> WriteVec<'a, Self, B> 
       where Self: Sized,
             B: Buf { ... }
    fn write_vec_all<'a, B>(
        &'a mut self,
        src: &'a mut B,
    ) -> WriteVecAll<'a, Self, B> 
       where Self: Sized,
             B: Buf { ... }
}

Required Methods§

Source

fn poll_write_vec<B>( self: Pin<&mut Self>, _cx: &mut Context<'_>, _buf: &mut B, ) -> Poll<Result<usize, Error>>
where B: Buf,

Provided Methods§

Source

fn write_vec<'a, B>(&'a mut self, src: &'a mut B) -> WriteVec<'a, Self, B>
where Self: Sized, B: Buf,

Source

fn write_vec_all<'a, B>( &'a mut self, src: &'a mut B, ) -> WriteVecAll<'a, Self, B>
where Self: Sized, B: Buf,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> AsyncWriteVec for T
where T: AsyncWrite,