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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.