Trait hyper_rustls::ResolveServerName

source ·
pub trait ResolveServerName {
    // Required method
    fn resolve(
        &self,
        uri: &Uri,
    ) -> Result<ServerName<'static>, Box<dyn Error + Sync + Send>>;
}
Expand description

A trait implemented by types that can resolve a ServerName for a request.

Required Methods§

source

fn resolve( &self, uri: &Uri, ) -> Result<ServerName<'static>, Box<dyn Error + Sync + Send>>

Maps a Uri into a ServerName.

Implementors§