hyper_rustls

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