pub trait ServeAddress {
type Address: Into<SocketAddr>;
// Required method
fn get_address(&self) -> Self::Address;
}
Expand description
get the address this server are going to bind with
pub trait ServeAddress {
type Address: Into<SocketAddr>;
// Required method
fn get_address(&self) -> Self::Address;
}
get the address this server are going to bind with