Trait pal_async::socket::AsSockRef

source ·
pub trait AsSockRef: Unpin {
    // Required method
    fn as_sock_ref(&self) -> SockRef<'_>;
}
Expand description

Trait implemented by socket types.

Required Methods§

source

fn as_sock_ref(&self) -> SockRef<'_>

Returns a socket reference.

Implementors§

source§

impl<T: Unpin> AsSockRef for T
where for<'a> &'a T: Into<SockRef<'a>>,