Skip to main content

AsyncReadAncillary

Trait AsyncReadAncillary 

Source
pub trait AsyncReadAncillary {
    // Required methods
    async fn read_with_ancillary<T, C>(
        &mut self,
        buffer: T,
        control: C,
    ) -> BufResult<(usize, usize, ReturnFlags), (T, C)>
       where T: IoBufMut,
             C: IoBufMut;
    async fn read_vectored_with_ancillary<T, C>(
        &mut self,
        buffer: T,
        control: C,
    ) -> BufResult<(usize, usize, ReturnFlags), (T, C)>
       where T: IoVectoredBufMut,
             C: IoBufMut;
}
Available on crate features ancillary and io only.
Expand description

Trait for asynchronous read with ancillary (control) data. Intended for connected stream sockets (TCP, Unix streams) where no source address is needed.

Required Methods§

Source

async fn read_with_ancillary<T, C>( &mut self, buffer: T, control: C, ) -> BufResult<(usize, usize, ReturnFlags), (T, C)>
where T: IoBufMut, C: IoBufMut,

Read data with ancillary data into an owned buffer, returning bytes read, control length, and recvmsg flags.

Source

async fn read_vectored_with_ancillary<T, C>( &mut self, buffer: T, control: C, ) -> BufResult<(usize, usize, ReturnFlags), (T, C)>

Read data with ancillary data into a vectored buffer, returning bytes read, control length, and recvmsg flags.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<A> AsyncReadAncillary for &mut A

Source§

async fn read_with_ancillary<T, C>( &mut self, buffer: T, control: C, ) -> BufResult<(usize, usize, ReturnFlags), (T, C)>
where T: IoBufMut, C: IoBufMut,

Source§

async fn read_vectored_with_ancillary<T, C>( &mut self, buffer: T, control: C, ) -> BufResult<(usize, usize, ReturnFlags), (T, C)>

Implementors§