Skip to main content

IpAddress

Trait IpAddress 

Source
pub trait IpAddress: Debug {
    // Required method
    fn with_port(&self, port: u16) -> SocketAddr;
}

Required Methods§

Source

fn with_port(&self, port: u16) -> SocketAddr

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<A> IpAddress for A
where A: Into<IpAddr> + Debug + Clone,