pal_async::socket

Trait 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>>,