Trait compio_io::AsyncWriteAtExt
source · pub trait AsyncWriteAtExt: AsyncWriteAt {
// Provided methods
async fn write_all_at<T: IoBuf>(
&mut self,
buf: T,
pos: u64,
) -> BufResult<(), T> { ... }
async fn write_vectored_all_at<T: IoVectoredBuf>(
&mut self,
buf: T,
pos: u64,
) -> BufResult<(), T> { ... }
}
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§
sourceasync fn write_all_at<T: IoBuf>(&mut self, buf: T, pos: u64) -> BufResult<(), T>
async fn write_all_at<T: IoBuf>(&mut self, buf: T, pos: u64) -> BufResult<(), T>
Like AsyncWriteAt::write_at
, except that it tries to write the
entire contents of the buffer into this writer.
sourceasync fn write_vectored_all_at<T: IoVectoredBuf>(
&mut self,
buf: T,
pos: u64,
) -> BufResult<(), T>
async fn write_vectored_all_at<T: IoVectoredBuf>( &mut self, buf: T, pos: u64, ) -> BufResult<(), T>
Like AsyncWriteAt::write_vectored_at
, expect that it tries to write
the entire contents of the buffer into this writer.
Object Safety§
This trait is not object safe.