netlink_proto

Function from_socket_with_codec

Source
pub fn from_socket_with_codec<T, S, C>(
    socket: S,
) -> (Connection<T, S, C>, ConnectionHandle<T>, UnboundedReceiver<(NetlinkMessage<T>, SocketAddr)>)
Expand description

Variant of new_connection that allows specifying a socket type to use for async handling, a special codec and a socket