hyper_proxy

Trait 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§