Skip to main content

Dst

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

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§