sockv4

Function sockv4 

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

Convert a string-like item into a SocketV4 address.

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