compio_driver::op

Trait RecvResultExt

Source
pub trait RecvResultExt {
    type RecvResult;

    // Required method
    fn map_addr(self) -> Self::RecvResult;
}
Expand description

Helper trait for RecvFrom, RecvFromVectored and RecvMsg.

Required Associated Types§

Source

type RecvResult

The mapped result.

Required Methods§

Source

fn map_addr(self) -> Self::RecvResult

Create SockAddr if the result is Ok.

Implementations on Foreign Types§

Source§

impl<T> RecvResultExt for BufResult<usize, (T, SOCKADDR_STORAGE, socklen_t)>

Source§

impl<T> RecvResultExt for BufResult<usize, (T, SOCKADDR_STORAGE, socklen_t, usize)>

Implementors§