Trait AsyncWriteRentAt

Source
pub trait AsyncWriteRentAt {
    // Required method
    fn write_at<T: IoBuf>(
        &mut self,
        buf: T,
        pos: usize,
    ) -> impl Future<Output = BufResult<usize, T>>;
}
Expand description

AsyncWriteRentAt: async write with a ownership of a buffer and a position

Required Methods§

Source

fn write_at<T: IoBuf>( &mut self, buf: T, pos: usize, ) -> impl Future<Output = BufResult<usize, T>>

Write buf at given offset

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.

Implementations on Foreign Types§

Source§

impl<A: ?Sized + AsyncWriteRentAt> AsyncWriteRentAt for &mut A

Source§

fn write_at<T: IoBuf>( &mut self, buf: T, pos: usize, ) -> impl Future<Output = BufResult<usize, T>>

Implementors§