Struct async_smtp::ServerAddress
source · Expand description
Server address, basically a combination of a host (domain/ip address) and a port
Fields§
§host: String
host, either a domain or an ipv4/v4 address
port: u16
port number
Implementations§
source§impl ServerAddress
impl ServerAddress
sourcepub fn new(host: String, port: u16) -> ServerAddress
pub fn new(host: String, port: u16) -> ServerAddress
Creates a new ServerAddress from a host and a port
Trait Implementations§
source§impl Clone for ServerAddress
impl Clone for ServerAddress
source§fn clone(&self) -> ServerAddress
fn clone(&self) -> ServerAddress
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more