sock

Function sock 

Source
pub fn sock(s: impl AsRef<str>) -> Result<SocketAddr, AddrParseError>
Expand description

Convert a string-like item into a Socket address.

use valust_utils::net::sock;
#[derive(Valust)]
struct Stringify {
    #[trans(func(String => try(sock)))]
    socket: std::net::SocketAddr,
}