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
sourceimpl 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
sourceimpl Clone for ServerAddress
impl Clone for ServerAddress
sourcefn clone(&self) -> ServerAddress
fn clone(&self) -> ServerAddress
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ServerAddress
impl Debug for ServerAddress
Auto Trait Implementations
impl RefUnwindSafe for ServerAddress
impl Send for ServerAddress
impl Sync for ServerAddress
impl Unpin for ServerAddress
impl UnwindSafe for ServerAddress
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more