pub trait Dst { // Required methods fn scheme(&self) -> Option<&str>; fn host(&self) -> Option<&str>; fn port(&self) -> Option<u16>; }
A trait for matching between Destination and Uri
Returns the connection scheme, e.g. “http” or “https”
Returns the host of the connection
Returns the port for the connection