pub unsafe trait SocketlikeViewType: FromSocketlike + IntoSocketlike { }
Expand description

Declare that a type is safe to use in a SocketlikeView.

Safety

Types implementing this trait declare that if they are constructed with FromSocketlike and consumed with IntoSocketlike, their IntoSocketlike will return the same OwnedFd value that was passed to their FromSocketlike.

Implementations on Foreign Types§

source§

impl SocketlikeViewType for TcpStream

source§

impl SocketlikeViewType for UdpSocket

source§

impl SocketlikeViewType for TcpListener

Implementors§