Skip to main content

IntoAddress

Trait IntoAddress 

Source
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§

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoAddress for &str

Source§

impl IntoAddress for (&str, u16)

Source§

impl IntoAddress for (IpAddr, u16)

Source§

impl IntoAddress for (String, u16)

Source§

impl IntoAddress for SocketAddr

Implementors§