Skip to main content

ServerIdentityProvider

Trait ServerIdentityProvider 

Source
pub trait ServerIdentityProvider {
    type Error;

    // Required method
    fn resolve(&self) -> Result<ServerIdentity, Self::Error>;
}
Expand description

Application-owned source of the current TLS identity.

Required Associated Types§

Source

type Error

Failure returned while resolving the current identity.

Required Methods§

Source

fn resolve(&self) -> Result<ServerIdentity, Self::Error>

Resolves the identity to use for one new connection.

§Errors

Returns the provider’s error when no current identity is available.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§