AsyncWriteAtExt

Trait AsyncWriteAtExt 

pub trait AsyncWriteAtExt: AsyncWriteAt {
    // Provided methods
    async fn write_all_at<T>(&mut self, buf: T, pos: u64) -> BufResult<(), T>
       where T: IoBuf { ... }
    async fn write_vectored_all_at<T>(
        &mut self,
        buf: T,
        pos: u64,
    ) -> BufResult<(), T>
       where T: IoVectoredBuf { ... }
}
Available on crate feature io only.
Expand description

Implemented as an extension trait, adding utility methods to all AsyncWriteAt types. Callers will tend to import this trait instead of AsyncWriteAt.

Provided Methods§

async fn write_all_at<T>(&mut self, buf: T, pos: u64) -> BufResult<(), T>
where T: IoBuf,

Like AsyncWriteAt::write_at, except that it tries to write the entire contents of the buffer into this writer.

async fn write_vectored_all_at<T>( &mut self, buf: T, pos: u64, ) -> BufResult<(), T>
where T: IoVectoredBuf,

Like AsyncWriteAt::write_vectored_at, expect that it tries to write the entire contents of the buffer into this writer.

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§

§

impl<A> AsyncWriteAtExt for A
where A: AsyncWriteAt + ?Sized,