Struct hyper::client::connect::Destination
[−]
[src]
pub struct Destination { /* fields omitted */ }
A set of properties to describe where and how to try to connect.
Methods
impl Destination
[src]
pub fn scheme(&self) -> &str
[src]
Get the protocol scheme.
pub fn host(&self) -> &str
[src]
Get the hostname.
pub fn port(&self) -> Option<u16>
[src]
Get the port, if specified.
Trait Implementations
impl Clone for Destination
[src]
fn clone(&self) -> Destination
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more