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.
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.