pub trait IntoAddress: Send {
// Required method
fn into_address(self) -> Result<Address>;
// Provided method
fn into_socket_addr(self) -> Result<SocketAddr>
where Self: Sized { ... }
}Expand description
Converts to address value.
Required Methods§
fn into_address(self) -> Result<Address>
Provided Methods§
fn into_socket_addr(self) -> Result<SocketAddr>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".