Skip to main content

ResolveServerName

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].

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§