Trait ServeAddress

Source
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

Required Associated Types§

Required Methods§

Source

fn get_address(&self) -> Self::Address

Implementors§