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§