Trait hyper_http_proxy::Dst

source ·
pub trait Dst {
    // Required methods
    fn scheme(&self) -> Option<&str>;
    fn host(&self) -> Option<&str>;
    fn port(&self) -> Option<u16>;
}
Expand description

A trait for matching between Destination and Uri

Required Methods§

source

fn scheme(&self) -> Option<&str>

Returns the connection scheme, e.g. “http” or “https”

source

fn host(&self) -> Option<&str>

Returns the host of the connection

source

fn port(&self) -> Option<u16>

Returns the port for the connection

Implementations on Foreign Types§

source§

impl Dst for Uri

source§

fn scheme(&self) -> Option<&str>

source§

fn host(&self) -> Option<&str>

source§

fn port(&self) -> Option<u16>

Implementors§