Trait ping::TryFromSockAddr
source · pub trait TryFromSockAddr: Sized {
// Required method
fn try_from(value: SockAddr) -> Result<Self>;
}
Expand description
Addresses which can be converted from socket2::SockAddr
.
This trait exists to get around not being able to implement the foreign trait
TryFrom<socket2::SockAddr>
for the foreign types std::net::SocketAddr(V4|V6)?
.
Required Methods§
Object Safety§
This trait is not object safe.